public abstract class AbstractPaxosCallback<T> extends java.lang.Object implements IAsyncCallback<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.CountDownLatch |
latch |
protected int |
targets |
isAlive
Constructor and Description |
---|
AbstractPaxosCallback(int targets) |
Modifier and Type | Method and Description |
---|---|
void |
await() |
int |
getResponseCount() |
boolean |
isLatencyForSnitch() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
response
protected final java.util.concurrent.CountDownLatch latch
protected final int targets
public boolean isLatencyForSnitch()
isLatencyForSnitch
in interface IAsyncCallback<T>
public int getResponseCount()
public void await() throws WriteTimeoutException
WriteTimeoutException
Copyright © 2013 The Apache Software Foundation