public class ClusterRemoteOperationRouter extends AbstractRemoteOperationRouter
Modifier and Type | Class and Description |
---|---|
class |
ClusterRemoteOperationRouter.AsyncOperationExecutor<T extends RemoteOperationResult> |
protected static class |
ClusterRemoteOperationRouter.ExecutionStatus |
Modifier and Type | Field and Description |
---|---|
protected RemoteOperationsExecutorsCluster |
_cluster |
_logger
Constructor and Description |
---|
ClusterRemoteOperationRouter(RemoteOperationsExecutorsCluster cluster,
PostponedAsyncOperationsQueue posponedAsyncOperationsQueue) |
logAfterExecute, logAfterExecuteAsync, logAsyncExecutionFailure, logBeforeExecute, logBeforeExecuteAsync, logExecutionFailure, logInterruptedAsyncExecution, logInterruptedExecution, logUnexpectedAsyncExecution
protected final RemoteOperationsExecutorsCluster _cluster
public ClusterRemoteOperationRouter(RemoteOperationsExecutorsCluster cluster, PostponedAsyncOperationsQueue posponedAsyncOperationsQueue)
public <T extends RemoteOperationResult> void execute(RemoteOperationRequest<T> request) throws InterruptedException
InterruptedException
protected void afterOperationExecution(RemoteOperationRequest<?> request, RemoteOperationsExecutorProxy proxy, ClusterRemoteOperationRouter.ExecutionStatus status)
protected <T extends RemoteOperationResult> ClusterRemoteOperationRouter.ExecutionStatus processResult(RemoteOperationRequest<T> request, T result, Exception executionException)
protected boolean beforeOperationExecution(RemoteOperationRequest<?> request, RemoteOperationsExecutorProxy proxy) throws RemoteException
RemoteException
public <T extends RemoteOperationResult> RemoteOperationFutureListener<T> createFutureListener(RemoteOperationRequest<T> request, AsyncFutureListener<Object> listener)
public <T extends RemoteOperationResult> void executeAsync(RemoteOperationRequest<T> request, RemoteOperationFutureListener<T> futureListener)
public void executeOneway(RemoteOperationRequest<?> request) throws InterruptedException
InterruptedException
public RemoteOperationsExecutorProxy getCachedMember()
getCachedMember
in interface RemoteOperationRouter
getCachedMember
in class AbstractRemoteOperationRouter
public RemoteOperationsExecutorProxy getAnyAvailableMember()
public RemoteOperationsExecutorProxy getAnyActiveMember()
public void getAllAvailableMembers(List<RemoteOperationsExecutorProxy> availableMembers)
public void close()
Copyright © GigaSpaces.