public abstract class AbstractMessageTask<P> extends Object implements MessageTask, SecureRequest
| Modifier and Type | Field and Description | 
|---|---|
| protected ClientEngineImpl | clientEngine | 
| protected ClientMessage | clientMessage | 
| protected String | clientUuid | 
| protected Connection | connection | 
| protected ClientEndpoint | endpoint | 
| protected ClientEndpointManager | endpointManager | 
| protected ILogger | logger | 
| protected NodeEngineImpl | nodeEngine | 
| protected P | parameters | 
| protected InternalSerializationService | serializationService | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractMessageTask(ClientMessage clientMessage,
                   Node node,
                   Connection connection) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract P | decodeClientMessage(ClientMessage clientMessage) | 
| protected abstract ClientMessage | encodeResponse(Object response) | 
| protected Connection | findSendConnection() | 
| protected int | getClientVersion() | 
| abstract String | getDistributedObjectName()Used for  SecurityInterceptor | 
| String | getDistributedObjectType()Used for  SecurityInterceptor | 
| protected ClientEndpoint | getEndpoint() | 
| abstract String | getMethodName()Used for  SecurityInterceptorMethod name which called via a distributedObject
 for map.put, methodName will be 'put'
 For requests which do not produced via a distributedObject should return null, for example internal client. | 
| abstract Object[] | getParameters()Used for  SecurityInterceptorParameters passed to the method by a distributedObject
 for map.put(key, value) parameters should be 'key' and 'value'
 parameters can be in binary or object form, underlying implementation will de-serialize lazily | 
| int | getPartitionId()Returns the partition-id. | 
| <S> S | getService(String serviceName) | 
| abstract String | getServiceName() | 
| protected void | handleProcessingFailure(Throwable throwable) | 
| protected boolean | isAuthenticationMessage() | 
| protected abstract void | processMessage() | 
| void | run() | 
| protected void | sendClientMessage(ClientMessage resultClientMessage) | 
| protected void | sendClientMessage(Object key,
                 ClientMessage resultClientMessage) | 
| protected void | sendClientMessage(Throwable throwable) | 
| protected void | sendResponse(Object response) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredPermissionprotected final ClientMessage clientMessage
protected volatile Connection connection
protected final ClientEndpoint endpoint
protected final NodeEngineImpl nodeEngine
protected final InternalSerializationService serializationService
protected final ILogger logger
protected final ClientEndpointManager endpointManager
protected final ClientEngineImpl clientEngine
protected P parameters
protected String clientUuid
protected AbstractMessageTask(ClientMessage clientMessage, Node node, Connection connection)
public <S> S getService(String serviceName)
protected ClientEndpoint getEndpoint()
protected int getClientVersion()
protected abstract P decodeClientMessage(ClientMessage clientMessage)
protected abstract ClientMessage encodeResponse(Object response)
public int getPartitionId()
PartitionSpecificRunnablegetPartitionId in interface PartitionSpecificRunnableprotected boolean isAuthenticationMessage()
protected void handleProcessingFailure(Throwable throwable)
protected void sendResponse(Object response)
protected void sendClientMessage(ClientMessage resultClientMessage)
protected Connection findSendConnection()
protected void sendClientMessage(Object key, ClientMessage resultClientMessage)
protected void sendClientMessage(Throwable throwable)
public abstract String getServiceName()
public String getDistributedObjectType()
SecureRequestSecurityInterceptorgetDistributedObjectType in interface SecureRequestpublic abstract String getDistributedObjectName()
SecureRequestSecurityInterceptorgetDistributedObjectName in interface SecureRequestpublic abstract String getMethodName()
SecureRequestSecurityInterceptor
 Method name which called via a distributedObject
 for map.put, methodName will be 'put'
 For requests which do not produced via a distributedObject should return null, for example internal client.getMethodName in interface SecureRequestpublic abstract Object[] getParameters()
SecureRequestSecurityInterceptor
 Parameters passed to the method by a distributedObject
 for map.put(key, value) parameters should be 'key' and 'value'
 parameters can be in binary or object form, underlying implementation will de-serialize lazilygetParameters in interface SecureRequestCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.