Package org.openspaces.pu.sla
Class MemberAliveIndicator
java.lang.Object
org.openspaces.pu.sla.MemberAliveIndicator
- All Implemented Interfaces:
Serializable
The member alive indicator allows to configure the SLA on how often a member will be checed to
see if a member is alive, and in case of failure, how many times to retry and how often.
- Author:
- kimchy
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongHow often an instance will be checked and verfied to be alive.intOnce a member has been indicated as not alive, how many times to check it before giving up on it.longOnce a member has been indicated as not alive, what is the retry timeout interval.voidsetInvocationDelay(long invocationDelay) How often an instance will be checked and verfied to be alive.voidsetRetryCount(int retryCount) Once a member has been indicated as not alive, how many times to check it before giving up on it.voidsetRetryTimeout(long retryTimeout) Once a member has been indicated as not alive, what is the retry timeout interval.
-
Constructor Details
-
MemberAliveIndicator
public MemberAliveIndicator()
-
-
Method Details
-
getInvocationDelay
public long getInvocationDelay()How often an instance will be checked and verfied to be alive. In milliseconds and defaults to 5000, which are 5 seconds. -
setInvocationDelay
public void setInvocationDelay(long invocationDelay) How often an instance will be checked and verfied to be alive. In milliseconds and defaults to 5000, which are 5 seconds. -
getRetryTimeout
public long getRetryTimeout()Once a member has been indicated as not alive, what is the retry timeout interval. In milliseconds and defaults to 500 milliseconds. -
setRetryTimeout
public void setRetryTimeout(long retryTimeout) Once a member has been indicated as not alive, what is the retry timeout interval. In milliseconds and defaults to 500 milliseconds. -
getRetryCount
public int getRetryCount()Once a member has been indicated as not alive, how many times to check it before giving up on it. Defaults to3. -
setRetryCount
public void setRetryCount(int retryCount) Once a member has been indicated as not alive, how many times to check it before giving up on it. Defaults to3.
-