public static interface ReplicationOperation.Primary<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,PrimaryResultT extends ReplicationOperation.PrimaryResult<ReplicaRequest>>
Modifier and Type | Method and Description |
---|---|
void |
failShard(java.lang.String message,
java.lang.Exception exception)
fail the primary, typically due to the fact that the operation has learned the primary has been demoted by the master
|
PrimaryResultT |
perform(Request request)
Performs the given request on this primary.
|
ShardRouting |
routingEntry()
routing entry for this primary
|
ShardRouting routingEntry()
void failShard(java.lang.String message, java.lang.Exception exception)
PrimaryResultT perform(Request request) throws java.lang.Exception
request
- the request to performjava.lang.Exception