|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Deferable
A singleton application that will not start if another instance is active. Any application that wants this behavior must implement these methods. If no inter-application messaging is needed then "send" should return null and "recv" should do nothing.
Method Summary | |
---|---|
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. |
Serializable |
sendFromDeferred()
Callback to handle the situation where another instance was running earlier, and this instance attempted to start but deferred to that. |
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |