public class ChangePermitsMessageTask extends AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters> implements ExecutionCallback<Boolean>
ChangePermitsOpclientEngine, clientMessage, connection, endpoint, logger, nodeEngine, parameters, serializationService| Constructor and Description | 
|---|
ChangePermitsMessageTask(ClientMessage clientMessage,
                        Node node,
                        Connection connection)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters | 
decodeClientMessage(ClientMessage clientMessage)  | 
protected ClientMessage | 
encodeResponse(Object response)  | 
String | 
getDistributedObjectName()
Used for  
SecurityInterceptor | 
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. | 
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 | 
Permission | 
getRequiredPermission()  | 
String | 
getServiceName()  | 
void | 
onFailure(Throwable t)
Called when an execution is completed with an error. 
 | 
void | 
onResponse(Boolean response)
Called when an execution is completed successfully. 
 | 
protected void | 
processMessage()  | 
getDistributedObjectType, getMemberBuildInfo, getPartitionId, getService, handleProcessingFailure, isAdvancedNetworkEnabled, requiresAuthentication, run, sendClientMessage, sendClientMessage, sendClientMessage, sendResponsepublic ChangePermitsMessageTask(ClientMessage clientMessage, Node node, Connection connection)
protected void processMessage()
processMessage in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>protected com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters decodeClientMessage(ClientMessage clientMessage)
decodeClientMessage in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>protected ClientMessage encodeResponse(Object response)
encodeResponse in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>public String getServiceName()
getServiceName in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>public Permission getRequiredPermission()
getRequiredPermission in interface SecureRequestpublic String getDistributedObjectName()
SecureRequestSecurityInterceptorgetDistributedObjectName in interface SecureRequestgetDistributedObjectName in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>public 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 SecureRequestgetMethodName in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>public 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 SecureRequestgetParameters in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.CPSemaphoreChangeCodec.RequestParameters>public void onResponse(Boolean response)
ExecutionCallbackonResponse in interface ExecutionCallback<Boolean>response - the result of the successful executionpublic void onFailure(Throwable t)
ExecutionCallbackonFailure in interface ExecutionCallback<Boolean>t - the exception that is thrownCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.