Package org.openspaces.remoting
Interface SpaceRemotingResult<T>
- All Known Subinterfaces:
HashedSpaceRemotingEntry,SpaceRemotingEntry
- All Known Implementing Classes:
EventDrivenSpaceRemotingEntry,EventDrivenSpaceRemotingFifoEntry,HashedEventDrivenSpaceRemotingEntry,HashedEventDrivenSpaceRemotingFifoEntry
public interface SpaceRemotingResult<T>
A remote invocation result holding either an exception (that occurred during the execution of
remote service) or the actual result data.
In order to correctly handle results, first check getException() for possible
exception during the remote invocation. If a null value is returned, check the
actual result using getResult().
- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionAn exception that occured during the remote invocation.The cluster instance id this result was executed on.The result of the remote invocation.Returns the routing index for the given result in cases where the remote invocation was directed to a specific cluster instance.
-
Method Details
-
getRouting
Object getRouting()Returns the routing index for the given result in cases where the remote invocation was directed to a specific cluster instance. -
getResult
T getResult()The result of the remote invocation. Note,nullvalue might mean that remote service returned null/void, but it also might means that there might be angetException(). -
getException
Throwable getException()An exception that occured during the remote invocation.nullvalue means there was no exception. -
getInstanceId
Integer getInstanceId()The cluster instance id this result was executed on.
-