Class AbstractPaxosCallback<T>
- java.lang.Object
-
- org.apache.cassandra.service.paxos.v1.AbstractPaxosCallback<T>
-
- All Implemented Interfaces:
RequestCallback<T>
- Direct Known Subclasses:
PrepareCallback
,ProposeCallback
public abstract class AbstractPaxosCallback<T> extends java.lang.Object implements RequestCallback<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected CountDownLatch
latch
protected int
targets
-
Constructor Summary
Constructors Constructor Description AbstractPaxosCallback(int targets, ConsistencyLevel consistency, Dispatcher.RequestTime requestTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
int
getResponseCount()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.net.RequestCallback
invokeOnFailure, onFailure, onResponse, trackLatencyForSnitch
-
-
-
-
Field Detail
-
latch
protected final CountDownLatch latch
-
targets
protected final int targets
-
-
Constructor Detail
-
AbstractPaxosCallback
public AbstractPaxosCallback(int targets, ConsistencyLevel consistency, Dispatcher.RequestTime requestTime)
-
-
Method Detail
-
getResponseCount
public int getResponseCount()
-
await
public void await() throws WriteTimeoutException
- Throws:
WriteTimeoutException
-
-