|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleApp
An application that want to automatically be managed as a single invocation must implement this to be able to use SingleAppEnforcer.
Method Summary | |
---|---|
void |
forceExit()
Force death if not graceful. |
void |
gracefulExitForPreempt()
The final hook allowing the preempted application to shutdown gracefully. |
void |
recvFromDeferred(Object pObject)
Callback to handle the situation where this instance is running, and a second instance attempted to start but deferred to this. |
void |
recvFromPreempted(Object pObject)
Callback to handle the situation where an earlier instance is running, and a this instance started and told it to die. |
Serializable |
sendFromDeferred()
Callback to handle the situation where another instance was running earlier, and this instance attempted to start but deferred to that. |
Serializable |
sendToPreemptor()
Callback to handle the situation where this instance is running, and a second instance started and told this one to die. |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
Serializable sendFromDeferred()
void recvFromDeferred(Object pObject)
pObject
- A serializable object that communicates the handoff from the dying application to the surviving one.Serializable sendToPreemptor()
void recvFromPreempted(Object pObject)
pObject
- A serializable object that communicates the handoff from the dying application to the surviving one.void gracefulExitForPreempt()
void forceExit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |