Class PaxosFinishPrepareCleanup
java.lang.Object
org.apache.cassandra.utils.concurrent.AbstractFuture<V>
org.apache.cassandra.utils.concurrent.AsyncFuture<Void>
org.apache.cassandra.service.paxos.cleanup.PaxosFinishPrepareCleanup
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<Void>,io.netty.util.concurrent.Future<Void>,Future<Void>,RequestCallback<Void>,RequestCallbackWithFailure<Void>,Awaitable,Future<Void>
public class PaxosFinishPrepareCleanup
extends AsyncFuture<Void>
implements RequestCallbackWithFailure<Void>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable -
Field Summary
FieldsFields inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
CANCELLED, UNCANCELLABLE, UNSET -
Method Summary
Modifier and TypeMethodDescriptionstatic IVerbHandler<PaxosCleanupHistory>static PaxosFinishPrepareCleanupfinish(SharedContext ctx, Collection<InetAddressAndPort> endpoints, PaxosCleanupHistory result) voidonFailure(InetAddressAndPort from, RequestFailureReason reason) Called when there is an exception on the remote node or timeout happensvoidonResponse(Message<Void> msg) Methods inherited from class org.apache.cassandra.utils.concurrent.AsyncFuture
await, awaitUntil, flatMap, mapMethods inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cancel, cause, description, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, setUncancellable, setUncancellableExclusive, toString, tryFailure, trySuccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.Future
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptiblyMethods inherited from interface org.apache.cassandra.net.RequestCallback
trackLatencyForSnitchMethods inherited from interface org.apache.cassandra.net.RequestCallbackWithFailure
invokeOnFailure
-
Field Details
-
verbHandler
-
-
Method Details
-
onFailure
Description copied from interface:RequestCallbackWithFailureCalled when there is an exception on the remote node or timeout happens- Specified by:
onFailurein interfaceRequestCallback<Void>- Specified by:
onFailurein interfaceRequestCallbackWithFailure<Void>
-
onResponse
- Specified by:
onResponsein interfaceRequestCallback<Void>- Parameters:
msg- response received.