org.openspaces.core
Interface PollingFuture<T>
- All Known Subinterfaces:
- FutureCleanupCloudResources, FutureGridServiceAgent, FutureGridServiceAgents, FutureGridServiceContainer, FutureMachineFailure, FutureStatefulProcessingUnitInstance, FutureStatelessProcessingUnitInstance, FutureStoppedMachine
public interface PollingFuture<T>
get
T get()
throws ExecutionException,
IllegalStateException,
TimeoutException
- Returns:
- the result, or one of the following exceptions
- Throws:
ExecutionException
- - execution failed and an exception was raised during work
IllegalStateException
- - execution not done yet. Call this method only when @{link isDone()
returns true.
TimeoutException
- - execution timed out and result is not available.
isDone
boolean isDone()
- Returns:
- true if execution completed successfully, with an exception or timed-out. If it is still in progress returns null.
isTimedOut
boolean isTimedOut()
- Returns:
- true if execution timed out.
getException
ExecutionException getException()
- Returns:
- the execption raised during execution wraped as an ExecutionException or null if in progress or no exception was raised.
getTimestamp
Date getTimestamp()
Copyright © GigaSpaces.