public class CatchUpTaskClient extends TaskActivity<CatchUpTaskClient.State>
Modifier and Type | Class and Description |
---|---|
protected static class |
CatchUpTaskClient.State |
endState, startState, stateChangedLatch
Constructor and Description |
---|
CatchUpTaskClient(HyperGraphPeer thisPeer,
java.lang.Object catchUpWith) |
Modifier and Type | Method and Description |
---|---|
CatchUpTaskClient.State |
handleConfirm(AbstractActivity<?> fromActivity) |
CatchUpTaskClient.State |
handleDisconfirm(AbstractActivity<?> fromActivity) |
protected void |
initiate()
This method is called the first time the task is scheduled to run.
|
void |
stateChanged(java.lang.Object newState,
AbstractActivity<?> activity) |
createNewConversation, doRun, getPeerInterface, getTaskId, getThisPeer, handleActivity, handleMessage, registerConversation, registerConversationHandler, sendReply, setTaskId
afterStateChanged, compareAndSetState, getEndState, getStartState, getState, isStopped, run, setState, setStateListener
public CatchUpTaskClient(HyperGraphPeer thisPeer, java.lang.Object catchUpWith)
protected void initiate()
TaskActivity
This method is called the first time the task is scheduled to run. It is
an initialization method called after the task was constructed.
The default implementation of startTask
does nothing.
initiate
in class TaskActivity<CatchUpTaskClient.State>
public void stateChanged(java.lang.Object newState, AbstractActivity<?> activity)
stateChanged
in interface ActivityStateListener
stateChanged
in class TaskActivity<CatchUpTaskClient.State>
public CatchUpTaskClient.State handleConfirm(AbstractActivity<?> fromActivity)
public CatchUpTaskClient.State handleDisconfirm(AbstractActivity<?> fromActivity)