com.ibm.websphere.asynchbeans
Interface EventSourceEvents
All known subinterfaces:
- public interface EventSourceEvents
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
listenerCountChanged(EventSource es,int oldCount,int newCount)
This number of listeners has changed as a result of an addListener or
removeListener method being called.
|
|
listenerExceptionThrown(EventSource es,java.lang.Object listener,java.lang.String methodName,java.lang.Throwable exception)
A registered listener method threw an exception whilst handling an event.
|
|
unexpectedException(EventSource es,java.lang.Object runnable,java.lang.Throwable exception)
An unexpected exception was detected in the runtime.
|
Method Detail
listenerCountChanged
- void listenerCountChanged(EventSource es,
- int oldCount,
- int newCount)
This number of listeners has changed as a result of an addListener or
removeListener method being called.
Parameters:
es
- The EventSource in question. oldCount
- The listener count before this operation. newCount
- The listener count after the operation. listenerExceptionThrown
- void listenerExceptionThrown(EventSource es,
- java.lang.Object listener,
- java.lang.String methodName,
- java.lang.Throwable exception)
A registered listener method threw an exception whilst handling an event.
Listeners should not throw exception and hence this event is fired to allow
an application to do application specific recovery or logging.
Parameters:
es
- The EventSource in question. listener
- The listener which failed. methodName
- The name of the method being called. exception
- The exception thrown by the listener. unexpectedException
- void unexpectedException(EventSource es,
- java.lang.Object runnable,
- java.lang.Throwable exception)
An unexpected exception was detected in the runtime. This should never
happen and would probably indicate a runtime fault.
Parameters:
es
- The EventSource in question. runnable
- The object which threw the exception. exception
- The thrown exception.