com.j_spaces.core.multiple.write
Interface IWriteResult

All Superinterfaces:
Serializable

public interface IWriteResult
extends Serializable

Hold result that can be either lease or Throwable. Used with WriteMultiplePartialFailureException to hold multiple results for multiple write operations.


Nested Class Summary
static class IWriteResult.ResultType
           
 
Method Summary
 Throwable getError()
           
 Lease getLease()
           
 IWriteResult.ResultType getResultType()
           
 

Method Detail

getResultType

IWriteResult.ResultType getResultType()
Returns:
the result type of this value, can be one of enum ResultType

getError

Throwable getError()
Returns:
the error value that this value represent, or null if getResultType() does not return ERROR.

getLease

Lease getLease()
Returns:
the lease that this value stands for , or null if getResultType() does not return LEASE.