Package | Description |
---|---|
org.apache.cassandra.locator | |
org.apache.cassandra.net | |
org.apache.cassandra.service |
Modifier and Type | Method and Description |
---|---|
<T> AbstractWriteResponseHandler<T> |
AbstractReplicationStrategy.getWriteResponseHandler(ReplicaPlan.ForWrite replicaPlan,
java.lang.Runnable callback,
WriteType writeType,
java.util.function.Supplier<Mutation> hintOnFailure,
long queryStartNanoTime) |
<T> AbstractWriteResponseHandler<T> |
AbstractReplicationStrategy.getWriteResponseHandler(ReplicaPlan.ForWrite replicaPlan,
java.lang.Runnable callback,
WriteType writeType,
java.util.function.Supplier<Mutation> hintOnFailure,
long queryStartNanoTime,
ConsistencyLevel idealConsistencyLevel) |
Modifier and Type | Method and Description |
---|---|
void |
RequestCallbacks.addWithExpiration(AbstractWriteResponseHandler<?> cb,
Message<?> message,
Replica to,
ConsistencyLevel consistencyLevel,
boolean allowHints) |
void |
MessagingService.sendWriteWithCallback(Message message,
Replica to,
AbstractWriteResponseHandler<?> handler,
boolean allowHints)
Send a mutation message or a Paxos Commit to a given endpoint.
|
Modifier and Type | Class and Description |
---|---|
class |
BatchlogResponseHandler<T> |
class |
DatacenterSyncWriteResponseHandler<T>
This class blocks for a quorum of responses _in all datacenters_ (CL.EACH_QUORUM).
|
class |
DatacenterWriteResponseHandler<T>
This class blocks for a quorum of responses _in the local datacenter only_ (CL.LOCAL_QUORUM).
|
class |
WriteResponseHandler<T>
Handles blocking writes for ONE, ANY, TWO, THREE, QUORUM, and ALL consistency levels.
|
Modifier and Type | Method and Description |
---|---|
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.applyCounterMutationOnCoordinator(CounterMutation cm,
java.lang.String localDataCenter,
long queryStartNanoTime) |
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.applyCounterMutationOnLeader(CounterMutation cm,
java.lang.String localDataCenter,
java.lang.Runnable callback,
long queryStartNanoTime) |
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.mutateCounter(CounterMutation cm,
java.lang.String localDataCenter,
long queryStartNanoTime)
Handle counter mutation on the coordinator host.
|
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.performWrite(IMutation mutation,
ConsistencyLevel consistencyLevel,
java.lang.String localDataCenter,
StorageProxy.WritePerformer performer,
java.lang.Runnable callback,
WriteType writeType,
long queryStartNanoTime)
Perform the write of a mutation given a WritePerformer.
|
Modifier and Type | Method and Description |
---|---|
void |
StorageProxy.WritePerformer.apply(IMutation mutation,
ReplicaPlan.ForWrite targets,
AbstractWriteResponseHandler<IMutation> responseHandler,
java.lang.String localDataCenter) |
static void |
StorageProxy.sendToHintedReplicas(Mutation mutation,
ReplicaPlan.ForWrite plan,
AbstractWriteResponseHandler<IMutation> responseHandler,
java.lang.String localDataCenter,
Stage stage)
Send the mutations to the right targets, write it locally if it corresponds or writes a hint when the node
is not available.
|
void |
AbstractWriteResponseHandler.setIdealCLResponseHandler(AbstractWriteResponseHandler handler)
Set a delegate ideal CL write response handler.
|
static java.util.concurrent.Future<java.lang.Void> |
StorageProxy.submitHint(Mutation mutation,
EndpointsForToken targets,
AbstractWriteResponseHandler<IMutation> responseHandler) |
static java.util.concurrent.Future<java.lang.Void> |
StorageProxy.submitHint(Mutation mutation,
Replica target,
AbstractWriteResponseHandler<IMutation> responseHandler) |
Constructor and Description |
---|
BatchlogResponseHandler(AbstractWriteResponseHandler<T> wrapped,
int requiredBeforeFinish,
BatchlogResponseHandler.BatchlogCleanup cleanup,
long queryStartNanoTime) |
Copyright © 2009-2022 The Apache Software Foundation