public final void init(NodeEngineImpl nodeEngine, Set<Operation> asyncOperations) {
        this.nodeEngine = nodeEngine;
        this.operationService = nodeEngine.getOperationService();
        this.serializationService = nodeEngine.getSerializationService();
        this.asyncOperations = asyncOperations;
        this.executionService = nodeEngine.getExecutionService();

        asyncOperations.add(offloadedOperation);
        offloadedOperation.setOperationResponseHandler(newOperationResponseHandler());
    }
public final void init ( NodeEngineImpl nodeEngine , Set < Operation > asyncOperations ) { this . nodeEngine = nodeEngine ; this . operationService = nodeEngine . getOperationService ( ) ; this . serializationService = nodeEngine . getSerializationService ( ) ; this . asyncOperations = asyncOperations ; this . executionService = nodeEngine . getExecutionService ( ) ; asyncOperations . add ( offloadedOperation ) ; offloadedOperation . setOperationResponseHandler ( newOperationResponseHandler ( ) ) ; }
Initializes the Offload.

As part of the initialization, the {@link OperationResponseHandler} of
the offloaded {@link Operation} is replaced by a decorated version that
takes care of automatic deregistration of the operation on completion.

This method is called before the {@link #start()} is called by the
Operation infrastructure. An implementor of the {@link Offload} doesn't
need to deal with this method.

@param nodeEngine the {@link NodeEngineImpl}