mx4j.remote
public abstract class AbstractHeartBeat extends Object implements HeartBeat, Runnable
Version: $Revision: 1.4 $
| Constructor Summary | |
|---|---|
| protected | AbstractHeartBeat(ConnectionNotificationEmitter emitter, Map environment)
Creates a new HeartBeat.
|
| Method Summary | |
|---|---|
| int | getMaxRetries() |
| long | getPulsePeriod() |
| protected abstract void | pulse()
Subclasses will implement this method using protocol specific connections.
|
| void | run() |
| protected void | sendConnectionNotificationFailed()
Sends the connection failed notification using the emitter specified in
|
| void | start() |
| void | stop() |
Parameters: emitter The NotificationEmitter that sends connection failures notifications. environment The environment that may contain properties that specify heart beat's behavior
See Also: AbstractHeartBeat CONNECTION_HEARTBEAT_PERIOD CONNECTION_HEARTBEAT_RETRIES