|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender
public final class MulticastKeepaliveHeartbeatSender
Sends heartbeats to a multicast group containing a compressed list of URLs.
You can control how far the multicast packets propagate by setting the badly misnamed "TTL". Using the multicast IP protocol, the TTL value indicates the scope or range in which a packet may be forwarded. By convention:
Constructor Summary | |
---|---|
MulticastKeepaliveHeartbeatSender(CacheManager cacheManager,
java.net.InetAddress multicastAddress,
java.lang.Integer multicastPort,
java.lang.Integer timeToLive)
Constructor. |
Method Summary | |
---|---|
void |
dispose()
Shutdown this heartbeat sender |
static long |
getHeartBeatInterval()
Returns the heartbeat interval. |
java.lang.Integer |
getTimeToLive()
|
void |
init()
Start the heartbeat thread |
static void |
setHeartBeatInterval(long heartBeatInterval)
Sets the heartbeat interval to something other than the default of 5000ms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MulticastKeepaliveHeartbeatSender(CacheManager cacheManager, java.net.InetAddress multicastAddress, java.lang.Integer multicastPort, java.lang.Integer timeToLive)
cacheManager
- the bound CacheManager. Each CacheManager has a maximum of one sendermulticastAddress
- multicastPort
- timeToLive
- See class description for the meaning of this parameter.Method Detail |
---|
public final void init()
public final void dispose()
public static void setHeartBeatInterval(long heartBeatInterval)
heartBeatInterval
- a time in ms, greater than 1000public static long getHeartBeatInterval()
public java.lang.Integer getTimeToLive()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |