|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.routed.action.AsyncPutSynchronizer
public class AsyncPutSynchronizer
The AsyncPutSynchronizer Class is used for synchronizing operations inside PerformParallelPut action More specifically, it coordinate the exception handling and hinted handoff responsibility between master thread and async put threads
Constructor Summary | |
---|---|
AsyncPutSynchronizer()
|
Method Summary | |
---|---|
void |
cutoffHandling()
Master Stop accepting new responses (from async callbacks) |
void |
disallowDelegateSlop()
Stop accepting delegated slop responsibility by master |
java.util.Set<Node> |
getDelegatedSlopDestinations()
Get list of nodes to register slop for |
boolean |
responseQueueIsEmpty()
to see if the response queue is empty |
Response<ByteArray,java.lang.Object> |
responseQueuePoll(long timeout,
java.util.concurrent.TimeUnit timeUnit)
poll the response queue for response |
boolean |
tryDelegateResponseHandling(Response<ByteArray,java.lang.Object> response)
try to delegate the master to handle the response |
boolean |
tryDelegateSlop(Node node)
Try to delegate the responsibility of sending slops to master |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncPutSynchronizer()
Method Detail |
---|
public java.util.Set<Node> getDelegatedSlopDestinations()
public void disallowDelegateSlop()
public boolean tryDelegateSlop(Node node)
node
- The node that slop should eventually be pushed to
public void cutoffHandling()
public boolean tryDelegateResponseHandling(Response<ByteArray,java.lang.Object> response)
response
-
public Response<ByteArray,java.lang.Object> responseQueuePoll(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
timeout
- timeout amounttimeUnit
- timeUnit of timeout
java.lang.InterruptedException
public boolean responseQueueIsEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |