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 IWriteResult
public boolean isError()
isError
in interface IWriteResult
public void setType(IWriteResult.ResultType type)
public Throwable getError()
getError
in interface IWriteResult
public void setError(Throwable error)
public Lease getLease()
getLease
in interface IWriteResult
public void setLease(Lease lease)
public LeaseContext<?> getLeaseContext()
getLeaseContext
in interface IWriteResult
Copyright © GigaSpaces.