public abstract class AbstractDoOnceAfterNEventsListener extends BaseEventListener implements CountingListener
eventFilter, logger, name| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDoOnceAfterNEventsListener(EventListenerContext context,
EventFilter eventFilter,
int targetCount) |
|
AbstractDoOnceAfterNEventsListener(EventListenerContext context,
int targetCount) |
protected |
AbstractDoOnceAfterNEventsListener(EventListenerContext context,
java.lang.String name,
EventFilter eventFilter,
int targetCount) |
protected |
AbstractDoOnceAfterNEventsListener(EventListenerContext context,
java.lang.String name,
int targetCount) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doOnce(Event event) |
void |
doOnEvent(Event event) |
int |
getCount() |
int |
getTargetCount() |
boolean |
isFinished() |
java.lang.String |
toString() |
protected abstract void |
unsubscribe() |
countThrowable, getEventCount, getEventListenerContext, getExceptionCount, getMillisExecuting, isUnsubscribeOnException, onEvent, publishFinishedEvent, setUnsubscribeOnException, shouldHandleEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonEventpublic AbstractDoOnceAfterNEventsListener(EventListenerContext context, int targetCount)
protected AbstractDoOnceAfterNEventsListener(EventListenerContext context, EventFilter eventFilter, int targetCount)
protected AbstractDoOnceAfterNEventsListener(EventListenerContext context, java.lang.String name, int targetCount)
protected AbstractDoOnceAfterNEventsListener(EventListenerContext context, java.lang.String name, EventFilter eventFilter, int targetCount)
public void doOnEvent(Event event) throws java.lang.Exception
doOnEvent in class BaseEventListenerjava.lang.Exceptionprotected abstract void unsubscribe()
protected abstract void doOnce(Event event) throws java.lang.Exception
java.lang.Exceptionpublic int getTargetCount()
getTargetCount in interface CountingListenerpublic int getCount()
getCount in interface CountingListenerpublic boolean isFinished()
isFinished in interface FinishingListenerpublic java.lang.String toString()
toString in class BaseEventListenerCopyright © 2018. All Rights Reserved.