public abstract class AbstractMessageTask<P> extends Object implements MessageTask, SecureRequest
Modifier and Type | Field and Description |
---|---|
protected ClientEngine |
clientEngine |
protected ClientMessage |
clientMessage |
protected Connection |
connection |
protected ClientEndpoint |
endpoint |
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) |
abstract String |
getDistributedObjectName()
Used for
SecurityInterceptor |
String |
getDistributedObjectType()
Used for
SecurityInterceptor |
protected BuildInfo |
getMemberBuildInfo() |
abstract String |
getMethodName()
Used for
SecurityInterceptor
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. |
abstract Object[] |
getParameters()
Used for
SecurityInterceptor
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 lazily |
int |
getPartitionId()
Returns the partition ID.
|
<S> S |
getService(String serviceName) |
abstract String |
getServiceName() |
protected void |
handleProcessingFailure(Throwable throwable) |
protected boolean |
isAdvancedNetworkEnabled() |
protected abstract void |
processMessage() |
protected boolean |
requiresAuthentication() |
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, wait
getRequiredPermission
protected final ClientMessage clientMessage
protected final Connection connection
protected final ClientEndpoint endpoint
protected final NodeEngineImpl nodeEngine
protected final InternalSerializationService serializationService
protected final ILogger logger
protected final ClientEngine clientEngine
protected P parameters
protected AbstractMessageTask(ClientMessage clientMessage, Node node, Connection connection)
public <S> S getService(String serviceName)
protected abstract P decodeClientMessage(ClientMessage clientMessage)
protected abstract ClientMessage encodeResponse(Object response)
public int getPartitionId()
PartitionSpecificRunnable
getPartitionId
in interface PartitionSpecificRunnable
protected boolean requiresAuthentication()
protected void handleProcessingFailure(Throwable throwable)
protected void sendResponse(Object response)
protected void sendClientMessage(ClientMessage resultClientMessage)
protected void sendClientMessage(Object key, ClientMessage resultClientMessage)
protected void sendClientMessage(Throwable throwable)
public abstract String getServiceName()
public String getDistributedObjectType()
SecureRequest
SecurityInterceptor
getDistributedObjectType
in interface SecureRequest
public abstract String getDistributedObjectName()
SecureRequest
SecurityInterceptor
getDistributedObjectName
in interface SecureRequest
public abstract String getMethodName()
SecureRequest
SecurityInterceptor
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 SecureRequest
public abstract Object[] getParameters()
SecureRequest
SecurityInterceptor
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 SecureRequest
protected final BuildInfo getMemberBuildInfo()
protected boolean isAdvancedNetworkEnabled()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.