public class ActionOnFirstNEventsListener extends AbstractHandleFirstNEventsListener
eventFilter, logger, name| Constructor and Description |
|---|
ActionOnFirstNEventsListener(EventListenerContext context,
EventFilter eventFilter,
int targetCount,
EventBotAction action) |
ActionOnFirstNEventsListener(EventListenerContext context,
int targetCount,
EventBotAction action) |
ActionOnFirstNEventsListener(EventListenerContext context,
java.lang.String name,
EventFilter eventFilter,
int targetCount,
EventBotAction action) |
ActionOnFirstNEventsListener(EventListenerContext context,
java.lang.String name,
int targetCount,
EventBotAction action) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleFirstNTimes(Event event)
Implementation handle the event here.
|
protected void |
unsubscribe()
Implementations should unsubscribe here.
|
doOnEvent, getCount, getTargetCount, isFinished, toStringcountThrowable, getEventCount, getEventListenerContext, getExceptionCount, getMillisExecuting, isUnsubscribeOnException, onEvent, publishFinishedEvent, setUnsubscribeOnException, shouldHandleEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonEventpublic ActionOnFirstNEventsListener(EventListenerContext context, int targetCount, EventBotAction action)
public ActionOnFirstNEventsListener(EventListenerContext context, EventFilter eventFilter, int targetCount, EventBotAction action)
public ActionOnFirstNEventsListener(EventListenerContext context, java.lang.String name, int targetCount, EventBotAction action)
public ActionOnFirstNEventsListener(EventListenerContext context, java.lang.String name, EventFilter eventFilter, int targetCount, EventBotAction action)
protected void unsubscribe()
AbstractHandleFirstNEventsListenerunsubscribe in class AbstractHandleFirstNEventsListenerprotected void handleFirstNTimes(Event event) throws java.lang.Exception
AbstractHandleFirstNEventsListenerhandleFirstNTimes in class AbstractHandleFirstNEventsListenerjava.lang.ExceptionCopyright © 2018. All Rights Reserved.