public class StreamingListenerBus extends AsynchronousListenerBus<StreamingListener,StreamingListenerEvent> implements Logging
| Constructor and Description |
|---|
StreamingListenerBus() |
| Modifier and Type | Method and Description |
|---|---|
void |
onDropEvent(StreamingListenerEvent event)
If the event queue exceeds its capacity, the new events will be dropped.
|
void |
onPostEvent(StreamingListener listener,
StreamingListenerEvent event)
Post an event to the specified listener.
|
listenerThreadIsAlive, post, start, stop, waitUntilEmptyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningaddListener, listeners, postToAllpublic void onPostEvent(StreamingListener listener, StreamingListenerEvent event)
ListenerBusonPostEvent is guaranteed to be called in the same
thread.onPostEvent in interface ListenerBus<StreamingListener,StreamingListenerEvent>public void onDropEvent(StreamingListenerEvent event)
AsynchronousListenerBus
Note: onDropEvent can be called in any thread.
onDropEvent in class AsynchronousListenerBus<StreamingListener,StreamingListenerEvent>