Class WriteResultImpl
java.lang.Object
com.gigaspaces.internal.exceptions.WriteResultImpl
- All Implemented Interfaces:
WriteMultipleException.IWriteResult,IWriteResult,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.j_spaces.core.multiple.write.IWriteResult
IWriteResult.ResultType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WriteResultImplstatic WriteResultImplcreateLeaseResult(Lease lease) static WriteResultImplcreateResult(Lease lease, Throwable error) getError()getLease()LeaseContext<?>booleanisError()voidvoidvoidtoString()
-
Constructor Details
-
WriteResultImpl
public WriteResultImpl()
-
-
Method Details
-
createResult
-
createErrorResult
-
createLeaseResult
-
getResultType
- Specified by:
getResultTypein interfaceIWriteResult- Returns:
- the result type of this value, can be one of enum ResultType
-
isError
public boolean isError()- Specified by:
isErrorin interfaceIWriteResult- Returns:
- true if and only if this write result contains error value.
-
setType
-
getError
- Specified by:
getErrorin interfaceIWriteResult- Returns:
- the error value that this value represent, or null if getResultType() does not return ERROR.
-
setError
-
getLease
- Specified by:
getLeasein interfaceIWriteResult- Returns:
- the lease that this value stands for , or null if getResultType() does not return LEASE.
-
setLease
-
toString
-
getLeaseContext
- Specified by:
getLeaseContextin interfaceIWriteResult- Returns:
- the lease that this value stands for , or null if getResultType() does not return LEASE.
-