public abstract static class Engine.Result
extends java.lang.Object
Engine.Operation
Modifier | Constructor and Description |
---|---|
protected |
Result(Engine.Operation.TYPE operationType,
java.lang.Exception failure,
long version,
long seqNo) |
protected |
Result(Engine.Operation.TYPE operationType,
long version,
long seqNo) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getFailure()
get document failure while executing the operation
null in case of no failure |
Engine.Operation.TYPE |
getOperationType() |
long |
getSeqNo()
Get the sequence number on the primary.
|
long |
getTook()
get total time in nanoseconds
|
Translog.Location |
getTranslogLocation()
get the translog location after executing the operation
|
long |
getVersion()
get the updated document version
|
boolean |
hasFailure()
whether the operation had failure
|
protected Result(Engine.Operation.TYPE operationType, java.lang.Exception failure, long version, long seqNo)
protected Result(Engine.Operation.TYPE operationType, long version, long seqNo)
public boolean hasFailure()
public long getVersion()
public long getSeqNo()
public Translog.Location getTranslogLocation()
public java.lang.Exception getFailure()
null
in case of no failurepublic long getTook()
public Engine.Operation.TYPE getOperationType()