public abstract class TriggeredBot extends ScheduledActionBot
| Constructor and Description |
|---|
TriggeredBot() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelTrigger() |
protected void |
doInitialize()
Override this method to do initialization work.
|
protected abstract void |
doInitializeCustom()
Override this method to do initialization work.
|
protected void |
doShutdown()
Override this method to do free resources during shutdown.
|
protected abstract void |
doShutdownCustom()
Override this method to do shutdown work.
|
protected java.util.concurrent.ScheduledFuture |
getScheduledExecution() |
protected boolean |
isTriggerDone()
Returns true if the trigger won't cause any more executions (and none are currently running).
|
void |
setTrigger(org.springframework.scheduling.Trigger trigger) |
protected void |
workIsDone()
Overrides the inherited method so as to also cancel the trigger when
indicating that the bot's work is done.
|
getExecutor, getTaskScheduler, setTaskSchedulergetLinkedDataSource, getMatcheNodeURISource, getMatcherProtocolMatcherService, getMatcherProtocolNeedServiceClient, getNeedProducer, getNodeURISource, getSolrServerURI, getWonMessageSender, getWonNodeInformationService, setLinkedDataSource, setMatcherNodeURISource, setMatcherProtocolMatcherService, setMatcherProtocolNeedServiceClient, setNeedProducer, setNodeURISource, setSolrServerURI, setWonMessageSender, setWonNodeInformationServiceact, getBotContextWrapper, getLifecyclePhase, initialize, isWorkDone, knowsNeedURI, knowsNodeURI, onCloseFromOtherNeed, onConnectFromOtherNeed, onFailureResponse, onHintFromMatcher, onMatcherRegistered, onMessageFromOtherNeed, onNeedActivatedNotificationForMatcher, onNeedDeactivatedNotificationForMatcher, onNewNeedCreated, onNewNeedCreatedNotificationForMatcher, onOpenFromOtherNeed, onSuccessResponse, setBotContextWrapper, shutdownprotected void doInitialize()
BaseBotdoInitialize in class BaseBotprotected boolean isTriggerDone()
protected abstract void doInitializeCustom()
protected void doShutdown()
BaseBotdoShutdown in class BaseBotprotected abstract void doShutdownCustom()
protected void workIsDone()
workIsDone in class BaseBotprotected void cancelTrigger()
protected java.util.concurrent.ScheduledFuture getScheduledExecution()
public void setTrigger(org.springframework.scheduling.Trigger trigger)
Copyright © 2018. All Rights Reserved.