Package com.hazelcast.executor.impl.operations

Examples of com.hazelcast.executor.impl.operations.CancellationOperation


    }

    @Test
    public void test_callid_on_correct_stream_position() throws Exception {
        SerializationService serializationService = new DefaultSerializationServiceBuilder().build();
        CancellationOperation operation = new CancellationOperation(UuidUtil.buildRandomUuidString(), true);
        operation.setCallerUuid(UuidUtil.buildRandomUuidString());
        OperationAccessor.setCallId(operation, 12345);

        Data data = serializationService.toData(operation);
        long callId = IOUtil.extractOperationCallId(data, serializationService);
View Full Code Here


        this.interrupt = interrupt;
    }

    @Override
    protected void invoke() {
        CancellationOperation op = new CancellationOperation(uuid, interrupt);
        InvocationBuilder builder;
        if (target == null) {
            builder = createInvocationBuilder(getServiceName(), op, partitionId);
        } else {
            builder = createInvocationBuilder(getServiceName(), op, target);
View Full Code Here

            setDone();
        }
    }

    private Future invokeCancelOperation(boolean mayInterruptIfRunning) {
        CancellationOperation op = new CancellationOperation(uuid, mayInterruptIfRunning);
        OperationService opService = nodeEngine.getOperationService();
        InvocationBuilder builder;
        if (partitionId > -1) {
            builder = opService.createInvocationBuilder(DistributedExecutorService.SERVICE_NAME, op, partitionId);
        } else {
View Full Code Here

TOP

Related Classes of com.hazelcast.executor.impl.operations.CancellationOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.