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(java.util.Collection<java.net.InetAddress> naturalEndpoints,
java.util.Collection<java.net.InetAddress> pendingEndpoints,
ConsistencyLevel consistency_level,
java.lang.Runnable callback,
WriteType writeType) |
Modifier and Type | Method and Description |
---|---|
int |
MessagingService.sendRR(MessageOut<?> message,
java.net.InetAddress to,
AbstractWriteResponseHandler<?> handler,
boolean allowHints)
Send a mutation message or a Paxos Commit to a given endpoint.
|
Modifier and Type | Class and Description |
---|---|
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) |
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.applyCounterMutationOnLeader(CounterMutation cm,
java.lang.String localDataCenter,
java.lang.Runnable callback) |
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.mutateCounter(CounterMutation cm,
java.lang.String localDataCenter)
Handle counter mutation on the coordinator host.
|
static AbstractWriteResponseHandler<IMutation> |
StorageProxy.performWrite(IMutation mutation,
ConsistencyLevel consistency_level,
java.lang.String localDataCenter,
StorageProxy.WritePerformer performer,
java.lang.Runnable callback,
WriteType writeType)
Perform the write of a mutation given a WritePerformer.
|
Modifier and Type | Method and Description |
---|---|
void |
StorageProxy.WritePerformer.apply(IMutation mutation,
java.lang.Iterable<java.net.InetAddress> targets,
AbstractWriteResponseHandler<IMutation> responseHandler,
java.lang.String localDataCenter,
ConsistencyLevel consistencyLevel) |
static void |
StorageProxy.sendToHintedEndpoints(Mutation mutation,
java.lang.Iterable<java.net.InetAddress> targets,
AbstractWriteResponseHandler<IMutation> responseHandler,
java.lang.String localDataCenter)
Send the mutations to the right targets, write it locally if it corresponds or writes a hint when the node
is not available.
|
static java.util.concurrent.Future<java.lang.Void> |
StorageProxy.submitHint(Mutation mutation,
java.net.InetAddress target,
AbstractWriteResponseHandler<IMutation> responseHandler) |
Copyright © 2016 The Apache Software Foundation