public abstract static class RegularListener.AbstractDisposalHook<L extends RegularListener<L>> extends java.lang.Object implements RegularListener.DisposalHook<L>
Modifier and Type | Class and Description |
---|---|
static class |
RegularListener.AbstractDisposalHook.AbstractBuilder<B extends RegularListener.AbstractDisposalHook.AbstractBuilder<B>> |
Modifier and Type | Field and Description |
---|---|
protected boolean |
closeLoggerConsole |
protected boolean |
closePersistenceStore |
protected boolean |
disposeDisplayExecutor |
protected boolean |
shutdownSharedExecutor |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDisposalHook(RegularListener.AbstractDisposalHook.AbstractBuilder<?> builder)
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
onDispose(L listener) |
protected abstract void |
report(L listener,
java.lang.Object subject,
java.lang.Exception failure) |
java.lang.String |
toString() |
protected com.google.common.base.MoreObjects.ToStringHelper |
toStringHelper() |
protected void |
tryToCloseLoggerConsole(L listener) |
protected void |
tryToClosePersistenceStore(L listener) |
protected void |
tryToDisposeDisplayExecutor(L listener) |
protected void |
tryToShutdownSharedExecutor(L listener) |
protected final boolean closePersistenceStore
protected final boolean shutdownSharedExecutor
protected final boolean disposeDisplayExecutor
protected final boolean closeLoggerConsole
protected AbstractDisposalHook(RegularListener.AbstractDisposalHook.AbstractBuilder<?> builder)
public void onDispose(L listener) throws java.lang.Exception
onDispose
in interface RegularListener.DisposalHook<L extends RegularListener<L>>
java.lang.Exception
protected abstract void report(L listener, java.lang.Object subject, java.lang.Exception failure)
protected final void tryToClosePersistenceStore(L listener)
protected final void tryToShutdownSharedExecutor(L listener)
protected final void tryToDisposeDisplayExecutor(L listener)
protected final void tryToCloseLoggerConsole(L listener)
public java.lang.String toString()
toString
in class java.lang.Object
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()