public abstract class AbstractListener extends java.lang.Object implements Listener
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractListener.ContinuousEvent<E> |
protected class |
AbstractListener.InternalProbe<T> |
static class |
AbstractListener.RegistrationHook |
Modifier | Constructor and Description |
---|---|
protected |
AbstractListener()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone()
Always throws
CloneNotSupportedException . |
boolean |
equals(java.lang.Object object)
Compares the specified object with this listener for equality.
|
protected abstract <V> V |
execute(DisplayTask<V> task) |
protected abstract void |
execute(java.lang.Runnable command) |
protected void |
finalize()
Listeners should not depend on Java finalization.
|
int |
hashCode() |
protected abstract void |
inject(java.lang.String path,
Event data) |
protected abstract java.util.Map<java.lang.String,AbstractListener.InternalProbe<?>> |
internalProbeMappings() |
protected abstract void |
onFinalUnregistration()
Invoked automatically on final unregistration when workbench is closing.
|
protected abstract void |
onWorkbenchShutdown()
Invoked automatically on workbench shutdown.
|
protected abstract void |
persist(java.lang.String path,
Event data) |
void |
postRegister()
Post-register block.
|
protected abstract void |
postRegisterFailure(java.lang.Runnable task,
java.lang.Exception failure) |
void |
postUnregister()
Post-unregister block.
|
protected abstract void |
postUnregisterFailure(java.lang.Runnable task,
java.lang.Exception failure) |
void |
preRegister()
Pre-register block.
|
protected abstract void |
preRegisterFailure(java.lang.Runnable task,
java.lang.Exception failure) |
void |
preUnregister()
Pre-unregister block.
|
protected abstract void |
preUnregisterFailure(java.lang.Runnable task,
java.lang.Exception failure) |
protected void |
send(java.lang.String path,
Event data) |
protected void |
send(java.lang.String path,
java.lang.Iterable<Event> batch) |
protected void |
send(java.lang.String path,
java.util.Iterator<Event> batch) |
protected abstract void |
sendFailure(java.lang.String path,
Event data,
java.lang.Exception failure) |
java.lang.String |
toString() |
protected abstract void |
validate(java.lang.String path,
Event data) |
protected abstract <V> V execute(DisplayTask<V> task)
protected abstract void execute(java.lang.Runnable command)
public final void preRegister()
Registrable
preRegister
in interface Registrable
protected abstract void preRegisterFailure(java.lang.Runnable task, java.lang.Exception failure)
public final void postRegister()
Registrable
postRegister
in interface Registrable
protected abstract void postRegisterFailure(java.lang.Runnable task, java.lang.Exception failure)
public final void preUnregister()
Registrable
preUnregister
in interface Registrable
protected abstract void preUnregisterFailure(java.lang.Runnable task, java.lang.Exception failure)
public final void postUnregister()
Registrable
postUnregister
in interface Registrable
protected abstract void postUnregisterFailure(java.lang.Runnable task, java.lang.Exception failure)
protected abstract java.util.Map<java.lang.String,AbstractListener.InternalProbe<?>> internalProbeMappings()
protected abstract void inject(java.lang.String path, Event data) throws java.lang.Exception
java.lang.Exception
protected abstract void validate(java.lang.String path, Event data) throws java.lang.Exception
java.lang.Exception
protected abstract void persist(java.lang.String path, Event data) throws java.lang.Exception
java.lang.Exception
protected final void send(java.lang.String path, Event data)
protected final void send(java.lang.String path, java.lang.Iterable<Event> batch)
protected final void send(java.lang.String path, java.util.Iterator<Event> batch)
protected abstract void sendFailure(java.lang.String path, Event data, java.lang.Exception failure)
public final boolean equals(@Nullable java.lang.Object object)
Listener
true
if the specified object is also listener
and the two listeners have the same implementation classes.
This definition ensures that this method works properly across
different implementations of the listener interface.
Note: See the documentation of this class for more information regarding listener implementation classes.
public final int hashCode()
hashCode
in class java.lang.Object
protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneNotSupportedException
.clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected final void finalize()
finalize
in class java.lang.Object
protected abstract void onWorkbenchShutdown() throws java.lang.Exception
Warning: users should not invoke this method directly.
java.lang.Exception
protected abstract void onFinalUnregistration() throws java.lang.Exception
Warning: users should not invoke this method directly.
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object