Search in sources :

Example 1 with TransactionalMessageTask

use of com.hazelcast.client.impl.protocol.task.TransactionalMessageTask in project hazelcast by hazelcast.

the class ClientEngineImpl method accept.

public void accept(ClientMessage clientMessage) {
    Connection connection = clientMessage.getConnection();
    MessageTask messageTask = messageTaskFactory.create(clientMessage, connection);
    OperationServiceImpl operationService = nodeEngine.getOperationService();
    if (isUrgent(messageTask)) {
        operationService.execute((UrgentMessageTask) messageTask);
    } else if (messageTask instanceof AbstractPartitionMessageTask) {
        operationService.execute((AbstractPartitionMessageTask) messageTask);
    } else if (isQuery(messageTask)) {
        queryExecutor.execute(messageTask);
    } else if (messageTask instanceof TransactionalMessageTask) {
        blockingExecutor.execute(messageTask);
    } else if (messageTask instanceof BlockingMessageTask) {
        blockingExecutor.execute(messageTask);
    } else {
        executor.execute(messageTask);
    }
}
Also used : BlockingMessageTask(com.hazelcast.client.impl.protocol.task.BlockingMessageTask) UrgentMessageTask(com.hazelcast.client.impl.protocol.task.UrgentMessageTask) AbstractMapQueryMessageTask(com.hazelcast.client.impl.protocol.task.map.AbstractMapQueryMessageTask) SqlAbstractMessageTask(com.hazelcast.sql.impl.client.SqlAbstractMessageTask) AuthenticationBaseMessageTask(com.hazelcast.client.impl.protocol.task.AuthenticationBaseMessageTask) MessageTask(com.hazelcast.client.impl.protocol.task.MessageTask) TransactionalMessageTask(com.hazelcast.client.impl.protocol.task.TransactionalMessageTask) AbstractPartitionMessageTask(com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask) ServerConnection(com.hazelcast.internal.server.ServerConnection) Connection(com.hazelcast.internal.nio.Connection) AbstractPartitionMessageTask(com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask) BlockingMessageTask(com.hazelcast.client.impl.protocol.task.BlockingMessageTask) OperationServiceImpl(com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl) TransactionalMessageTask(com.hazelcast.client.impl.protocol.task.TransactionalMessageTask)

Aggregations

AbstractPartitionMessageTask (com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask)1 AuthenticationBaseMessageTask (com.hazelcast.client.impl.protocol.task.AuthenticationBaseMessageTask)1 BlockingMessageTask (com.hazelcast.client.impl.protocol.task.BlockingMessageTask)1 MessageTask (com.hazelcast.client.impl.protocol.task.MessageTask)1 TransactionalMessageTask (com.hazelcast.client.impl.protocol.task.TransactionalMessageTask)1 UrgentMessageTask (com.hazelcast.client.impl.protocol.task.UrgentMessageTask)1 AbstractMapQueryMessageTask (com.hazelcast.client.impl.protocol.task.map.AbstractMapQueryMessageTask)1 Connection (com.hazelcast.internal.nio.Connection)1 ServerConnection (com.hazelcast.internal.server.ServerConnection)1 OperationServiceImpl (com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl)1 SqlAbstractMessageTask (com.hazelcast.sql.impl.client.SqlAbstractMessageTask)1