Class TimeActor

java.lang.Object
net.sodacan.core.actor.AbstractActor
net.sodacan.core.actor.TimeActor
All Implemented Interfaces:
Closeable, AutoCloseable, Actor, HostBound

public class TimeActor extends AbstractActor implements 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.