public class WriteResultImpl extends Object implements WriteMultipleException.IWriteResult
IWriteResult.ResultType| Constructor and Description |
|---|
WriteResultImpl() |
| Modifier and Type | Method and Description |
|---|---|
static WriteResultImpl |
createErrorResult(Throwable e) |
static WriteResultImpl |
createLeaseResult(Lease lease) |
static WriteResultImpl |
createResult(Lease lease,
Throwable error) |
Throwable |
getError() |
Lease |
getLease() |
LeaseContext<?> |
getLeaseContext() |
IWriteResult.ResultType |
getResultType() |
boolean |
isError() |
void |
setError(Throwable error) |
void |
setLease(Lease lease) |
void |
setType(IWriteResult.ResultType type) |
String |
toString() |
public static WriteResultImpl createResult(Lease lease, Throwable error)
public static WriteResultImpl createErrorResult(Throwable e)
public static WriteResultImpl createLeaseResult(Lease lease)
public IWriteResult.ResultType getResultType()
getResultType in interface IWriteResultpublic boolean isError()
isError in interface IWriteResultpublic void setType(IWriteResult.ResultType type)
public Throwable getError()
getError in interface IWriteResultpublic void setError(Throwable error)
public Lease getLease()
getLease in interface IWriteResultpublic void setLease(Lease lease)
public LeaseContext<?> getLeaseContext()
getLeaseContext in interface IWriteResultCopyright © GigaSpaces.