Package org.flasby.net.heartbeat
Class Heartbeater.Beat
java.lang.Object
org.flasby.net.heartbeat.Heartbeater.Beat
- Enclosing class:
Heartbeater<T>
controls the beating of the heartbeat.
- Author:
- steve
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
stop()
will stop the heartbeat.void
tickleWith
(T tickleType) called every time a message is sent which should delay the sending of the next heartbeat.
-
Constructor Details
-
Beat
-
-
Method Details
-
tickleWith
called every time a message is sent which should delay the sending of the next heartbeat. Does not need to be invoked when the policy is ALWAYS. In this case it will simply be ignored. -
stop
public void stop()will stop the heartbeat. If you 'tickle' the Beat then it will start beating again.
-