Package org.elasticsearch.indices.flush
Class SyncedFlushService.ShardSyncedFlushResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.indices.flush.SyncedFlushService.ShardSyncedFlushResponse
- All Implemented Interfaces:
Writeable
- Enclosing class:
- SyncedFlushService
public static final class SyncedFlushService.ShardSyncedFlushResponse extends TransportResponse
Response for third step of synced flush (writing the sync id) for one shard copy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
Constructors Constructor Description ShardSyncedFlushResponse(java.lang.String failureReason)
ShardSyncedFlushResponse(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.lang.String
failureReason()
static SyncedFlushService.ShardSyncedFlushResponse
readSyncedFlushResponse(StreamInput in)
boolean
success()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
ShardSyncedFlushResponse
- Throws:
java.io.IOException
-
ShardSyncedFlushResponse
public ShardSyncedFlushResponse(java.lang.String failureReason)
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
java.io.IOException
-
success
public boolean success() -
failureReason
public java.lang.String failureReason() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
readSyncedFlushResponse
public static SyncedFlushService.ShardSyncedFlushResponse readSyncedFlushResponse(StreamInput in) throws java.io.IOException- Throws:
java.io.IOException
-