|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface PeerManager.LockedOperation
Wraps an operation that needs a shared resource lock to be acquired before it can be
performed, and released after it completes. Used by PeerManager.performWithLock(com.threerings.presents.peer.data.NodeObject.Lock, com.threerings.presents.peer.server.PeerManager.LockedOperation).
| Method Summary | |
|---|---|
void |
fail(String peerName)
Called when the resource lock was not acquired successfully, with the name of the peer who is holding the lock (or null in case of a generic failure). |
void |
run()
Called when the resource lock was acquired successfully. |
| Method Detail |
|---|
void run()
void fail(String peerName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||