mx4j.remote
Interface HeartBeat
- AbstractHeartBeat, HTTPHeartBeat, RMIHeartBeat
public interface HeartBeat
A continuous pulse from client to server that gives the information that
the connection is alive and the server is up.
int | getMaxRetries() - Returns the maximum number of retries this heart beat attempts after
a first connection failure before declaring the connection or the server
as dead.
|
long | getPulsePeriod() - Returns the period of time in milliseconds between two heart beats
|
void | start() - Starts the heart beat
|
void | stop() - Stops the heart beat
|
getMaxRetries
public int getMaxRetries()
Returns the maximum number of retries this heart beat attempts after
a first connection failure before declaring the connection or the server
as dead.
getPulsePeriod
public long getPulsePeriod()
Returns the period of time in milliseconds between two heart beats
start
public void start()
throws IOException
Starts the heart beat
stop
public void stop()
throws IOException
Stops the heart beat
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.