Search in sources :

Example 6 with OperationResponseHandler

use of com.hazelcast.spi.impl.operationservice.OperationResponseHandler in project hazelcast by hazelcast.

the class InvocationUtilTest method executeLocallyWithRetryFailsWhenOperationHandlerIsSet.

@Test(expected = IllegalArgumentException.class)
public void executeLocallyWithRetryFailsWhenOperationHandlerIsSet() {
    final Operation op = new Operation() {
    };
    op.setOperationResponseHandler(new OperationResponseHandler() {

        @Override
        public void sendResponse(Operation op, Object response) {
        }
    });
    executeLocallyWithRetry(null, op);
}
Also used : AbstractLocalOperation(com.hazelcast.spi.impl.operationservice.AbstractLocalOperation) Operation(com.hazelcast.spi.impl.operationservice.Operation) OperationResponseHandler(com.hazelcast.spi.impl.operationservice.OperationResponseHandler) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

OperationResponseHandler (com.hazelcast.spi.impl.operationservice.OperationResponseHandler)6 Operation (com.hazelcast.spi.impl.operationservice.Operation)3 NodeEngine (com.hazelcast.spi.impl.NodeEngine)2 Address (com.hazelcast.cluster.Address)1 HazelcastException (com.hazelcast.core.HazelcastException)1 HazelcastInstanceNotActiveException (com.hazelcast.core.HazelcastInstanceNotActiveException)1 UpdatePermissionConfigOperation (com.hazelcast.internal.management.operation.UpdatePermissionConfigOperation)1 ILogger (com.hazelcast.logging.ILogger)1 PartitionMigratingException (com.hazelcast.spi.exception.PartitionMigratingException)1 AbstractLocalOperation (com.hazelcast.spi.impl.operationservice.AbstractLocalOperation)1 BlockingOperation (com.hazelcast.spi.impl.operationservice.BlockingOperation)1 UrgentSystemOperation (com.hazelcast.spi.impl.operationservice.UrgentSystemOperation)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1