|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Guardable
A Guardable is a logical execution unit whose lifetime may be guarded by a Guardian. A Guardable may be a simple thread, or a more complex service.
Guardable objects are responsible for periodically proving that they are alive. Failure to do so will cause the Guardian to take corrective actions:Note: To prevent cascading failure (e.g. deadlock) all corrective actions are performed by the Guardian on temporary threads.
Guardable objects should be registered with an sufficiently sized SLA to accommodate variances in system-load, GC latencies etc. Guardians are not responsible for detecting or correcting for these conditions.Method Summary | |
---|---|
Guardian.GuardContext |
getContext() Return the guard context monitoring this guardable, or null if this Guardable is no longer being monitored. |
void |
recover() Attempt to recover this Guardable. |
void |
setContext(Guardian.GuardContext context) Set the guard context. |
void |
terminate() Terminate this Guardable. |
Method Detail |
---|
void setContext(Guardian.GuardContext context)
context
- the context guarding this GuardableGuardian.GuardContext getContext()
void recover()
void terminate()
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |