public class EmbeddedRemoteOperationRouter extends AbstractRemoteOperationRouter
Modifier and Type | Field and Description |
---|---|
protected RemoteOperationsExecutor |
_executor |
protected RemoteOperationsExecutorProxy |
_memberProxy |
_logger
Constructor and Description |
---|
EmbeddedRemoteOperationRouter(RemoteOperationsExecutorProxy memberProxy,
int partitionId,
String name,
Executor asyncExecutor) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterOperationExecution(RemoteOperationRequest<?> request) |
protected boolean |
beforeOperationExecution(RemoteOperationRequest<?> request) |
void |
close() |
<T extends RemoteOperationResult> |
createFutureListener(RemoteOperationRequest<T> request,
AsyncFutureListener<Object> listener) |
<T extends RemoteOperationResult> |
execute(RemoteOperationRequest<T> request) |
<T extends RemoteOperationResult> |
executeAsync(RemoteOperationRequest<T> request,
RemoteOperationFutureListener<T> futureListener) |
void |
executeOneway(RemoteOperationRequest<?> request) |
void |
getAllAvailableMembers(List<RemoteOperationsExecutorProxy> availableMembers) |
RemoteOperationsExecutorProxy |
getAnyActiveMember() |
RemoteOperationsExecutorProxy |
getAnyAvailableMember() |
RemoteOperationsExecutorProxy |
getCachedMember() |
RemoteOperationsExecutor |
getExecutor() |
String |
getName() |
int |
getPartitionId() |
logAfterExecute, logAfterExecuteAsync, logAsyncExecutionFailure, logBeforeExecute, logBeforeExecuteAsync, logExecutionFailure, logInterruptedAsyncExecution, logInterruptedExecution, logUnexpectedAsyncExecution
protected final RemoteOperationsExecutorProxy _memberProxy
protected final RemoteOperationsExecutor _executor
public EmbeddedRemoteOperationRouter(RemoteOperationsExecutorProxy memberProxy, int partitionId, String name, Executor asyncExecutor)
public RemoteOperationsExecutor getExecutor()
public <T extends RemoteOperationResult> void execute(RemoteOperationRequest<T> request) throws InterruptedException
InterruptedException
protected boolean beforeOperationExecution(RemoteOperationRequest<?> request)
protected void afterOperationExecution(RemoteOperationRequest<?> request)
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()
public int getPartitionId()
public String getName()
Copyright © GigaSpaces.