|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Guardian.GuardContext
A GuardContext represents the lifecycle status of a Guardable. The GuardContext is the point of coordination between the Guardian and the Guardable.
Field Summary | |
---|---|
static int |
STATE_HEALTHY State value indicating the Guardable is healthy/responsive. |
static int |
STATE_RECOVERY State value indicating that recovery of the Guardable is underway. |
static int |
STATE_TERMINATING State value indicating that the Guardable is being terminated. |
Method Summary | |
---|---|
Guardable |
getGuardable() Return the Guardable for this context. |
Guardian |
getGuardian() Return the Guardian for this context. |
long |
getSoftTimeoutMillis() Return the soft timeout interval for the represented Guardable. |
int |
getState() Return the state of the Guardable. |
void |
heartbeat() Called by the Guardable to signal that it is still alive. |
void |
heartbeat(long cMillis) Called by the Guardable to signal that it is still alive, and that it should not be considered timed out for the specified number of milliseconds. |
void |
release() Release this context, causing the Guardian to discontinue monitoring of the represented Guardable. |
Field Detail |
---|
static final int STATE_HEALTHY
static final int STATE_RECOVERY
static final int STATE_TERMINATING
Method Detail |
---|
Guardian getGuardian()
Guardable getGuardable()
void heartbeat()
void heartbeat(long cMillis)
cMillis
- the number of milliseconds for which the guardable should not be considered timed outint getState()
void release()
long getSoftTimeoutMillis()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |