public class OperationResult
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
OperationResult.Status |
Status contains the Operation Status flag that is either success/Failure/FailureRetry/FailureDontRemove
|
Constructor | Description |
---|---|
OperationResult(DataStructureWriteOperation writeDataTypeOperation,
OperationResult.Status operationStatus) |
OperationResult Constructor that takes WriteOptions and OperationStatus
|
OperationResult(DataStructureWriteOperation writeDataTypeOperation,
OperationResult.Status operationStatus,
java.lang.Exception exception) |
OperationResult Constructor that takes WriteOptions and OperationStatus and Exception as an arguments
|
OperationResult(DataStructureWriteOperation writeDataTypeOperation,
OperationResult.Status operationStatus,
java.lang.String errorMessage) |
OperationResult Constructor that takes WriteOptions and OperationStatus and errorMessage as arguments
|
OperationResult(WriteOperation writeOperation,
OperationResult.Status operationStatus) |
OperationResult Constructor that takes WriteOptions and OperationStatus.
|
OperationResult(WriteOperation writeOperation,
OperationResult.Status operationStatus,
java.lang.Exception exception) |
OperationResult Constructor that takes WriteOptions and OperationStatus and Exception as an arguments
|
OperationResult(WriteOperation writeOperation,
OperationResult.Status operationStatus,
java.lang.String errorMessage) |
OperationResult Constructor that takes WriteOptions and OperationStatus and errorMessage as arguments
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getError() |
Gets the error message associated with OperationResult.
|
java.lang.Exception |
getException() |
Gets the exception associated with the OperationResult.
|
WriteOperationBase |
getOperation() |
Gets the writeoperation associated with the OperationResult.
|
OperationResult.Status |
getOperationStatus() |
Gets the status associated with the opearation result.
|
boolean |
getUpdateInCache() |
Gets a boolean value that indicates if item will be updated in cache store after write operation.
|
void |
setError(java.lang.String value) |
Sets the error message associated with OperationResult.
|
void |
setException(java.lang.Exception value) |
Sets the exception associated with the OperationResult.
|
void |
setOperation(WriteOperationBase value) |
Sets the writeoperation associated with the OperationResult.
|
void |
setOperationStatus(OperationResult.Status value) |
Sets the status associated with the opearation result.
|
void |
setUpdateInCache(boolean value) |
Sets a boolean value that specifies if item will be updated in cache store after write operation.
|
public OperationResult(WriteOperation writeOperation, OperationResult.Status operationStatus)
writeOperation
- WriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.public OperationResult(WriteOperation writeOperation, OperationResult.Status operationStatus, java.lang.String errorMessage)
writeOperation
- WriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.errorMessage
- Error message about the failure of an operationpublic OperationResult(WriteOperation writeOperation, OperationResult.Status operationStatus, java.lang.Exception exception)
writeOperation
- WriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.exception
- Exception object about the failure of an Operationpublic OperationResult(DataStructureWriteOperation writeDataTypeOperation, OperationResult.Status operationStatus)
writeDataTypeOperation
- DataStructureWriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.public OperationResult(DataStructureWriteOperation writeDataTypeOperation, OperationResult.Status operationStatus, java.lang.String errorMessage)
writeDataTypeOperation
- DataStructureWriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.errorMessage
- Error message about the failure of an operationpublic OperationResult(DataStructureWriteOperation writeDataTypeOperation, OperationResult.Status operationStatus, java.lang.Exception exception)
writeDataTypeOperation
- DataStructureWriteOperation
associated with the operation result.operationStatus
- OperationResult.Status
associated with the operation result.exception
- Exception object about the failure of an Operationpublic final boolean getUpdateInCache()
public final void setUpdateInCache(boolean value)
value
- The boolean value to indicate whether item will be updated in cache or not.public final OperationResult.Status getOperationStatus()
public final void setOperationStatus(OperationResult.Status value)
value
- The status of the datasource write operation.public final WriteOperationBase getOperation()
public final void setOperation(WriteOperationBase value)
value
- The WriteOperation instance.public final java.lang.Exception getException()
public final void setException(java.lang.Exception value)
value
- The exception instance.public final java.lang.String getError()
public final void setError(java.lang.String value)
value
- The error message as string.