| Package | Description |
|---|---|
| com.threerings.presents.peer.client | |
| com.threerings.presents.peer.data | |
| com.threerings.presents.peer.server |
| Modifier and Type | Method and Description |
|---|---|
void |
PeerService.ratifyLockAction(NodeObject.Lock lock,
boolean acquire)
Informs the node that the sending peer ratifies its acquisition or release of the specified
lock.
|
| Modifier and Type | Field and Description |
|---|---|
NodeObject.Lock |
NodeObject.acquiringLock
Used to broadcast a node's desire to acquire a lock.
|
NodeObject.Lock |
NodeObject.releasingLock
Used to broadcast a node's desire to release a lock.
|
| Modifier and Type | Field and Description |
|---|---|
DSet<NodeObject.Lock> |
NodeObject.locks
The set of locks held by this node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NodeObject.addToLocks(NodeObject.Lock elem)
Requests that the specified entry be added to the
locks set. |
int |
NodeObject.Lock.compareTo(NodeObject.Lock olock) |
void |
PeerMarshaller.ratifyLockAction(NodeObject.Lock arg1,
boolean arg2) |
void |
NodeObject.setAcquiringLock(NodeObject.Lock value)
Requests that the
acquiringLock field be set to the
specified value. |
void |
NodeObject.setReleasingLock(NodeObject.Lock value)
Requests that the
releasingLock field be set to the
specified value. |
void |
NodeObject.updateLocks(NodeObject.Lock elem)
Requests that the specified entry be updated in the
locks set. |
| Modifier and Type | Method and Description |
|---|---|
void |
NodeObject.setLocks(DSet<NodeObject.Lock> value)
Requests that the
locks field be set to the
specified value. |
| Modifier and Type | Method and Description |
|---|---|
void |
PeerManager.acquireLock(NodeObject.Lock lock,
ResultListener<String> listener)
Acquires a lock on a resource shared amongst this node's peers.
|
void |
PeerManager.DroppedLockObserver.droppedLock(NodeObject.Lock lock)
Called when this node has been forced to drop a lock.
|
void |
PeerManager.performWithLock(NodeObject.Lock lock,
PeerManager.LockedOperation operation)
Tries to acquire the resource lock and, if successful, performs the operation and releases
the lock; if unsuccessful, calls the operation's failure handler.
|
String |
PeerManager.queryLock(NodeObject.Lock lock)
Finds the owner of the specified lock (if any) among this node and its peers.
|
void |
PeerManager.queryLock(NodeObject.Lock lock,
ResultListener<String> listener)
Determines the owner of the specified lock, waiting for any resolution to complete before
notifying the supplied listener.
|
void |
PeerProvider.ratifyLockAction(ClientObject caller,
NodeObject.Lock arg1,
boolean arg2)
|
void |
PeerManager.ratifyLockAction(ClientObject caller,
NodeObject.Lock lock,
boolean acquire) |
void |
PeerManager.reacquireLock(NodeObject.Lock lock)
Reacquires a lock after a call to
PeerManager.releaseLock(com.threerings.presents.peer.data.NodeObject.Lock, com.samskivert.util.ResultListener<java.lang.String>) but before the result listener
supplied to that method has been notified with the result of the action. |
void |
PeerManager.releaseLock(NodeObject.Lock lock,
ResultListener<String> listener)
Releases a lock.
|
Copyright © 2015. All rights reserved.