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) |
protected |
Result(Engine.Operation.TYPE operationType,
long version) |
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 |
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)
protected Result(Engine.Operation.TYPE operationType, long version)
public boolean hasFailure()
public long getVersion()
public Translog.Location getTranslogLocation()
public java.lang.Exception getFailure()
null
in case of no failurepublic long getTook()
public Engine.Operation.TYPE getOperationType()