Package net.sodacan.core.actor
Class TimeActor
java.lang.Object
net.sodacan.core.actor.AbstractActor
net.sodacan.core.actor.TimeActor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Actor
,HostBound
This timer actor provides a simple but important service for other Actors: It will accept a message, hold on to the message for a specified amount of time and then forward that message to its next step which could be the Actor that sent the message or any other actor.
This Actor can withstand a Host restart and will send messages it might have missed during any down time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sodacan.core.Actor
Actor.Builtin
-
Field Summary
Fields inherited from class net.sodacan.core.actor.AbstractActor
emptyStage, inbound
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sodacan.core.actor.AbstractActor
callProcessMessage, evictionProbability, exitingThread, getActorGroup, getActorId, getConfig, getEmptyStage, getLiveActorGroupStatistics, handleStage, nextRoute, processMessage, restore, rollback, save, send, setActorGroup, validateRoute
-
Constructor Details
-
TimeActor
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-