All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.stream.impl.LocalStreamManager Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.stream.impl;

import org.infinispan.remoting.transport.Address;

import java.util.Set;

/**
 * Stream manager that is invoked on a local node.  This is normally called due to a {@link ClusterStreamManager} from
 * another node requiring some operation to be performed
 * @param  the key type for the operations
 */
public interface LocalStreamManager {
   /**
    * Stream operation for a non key aware operation without rehash enabled.
    * @param requestId the originating request id
    * @param origin the node this request came from
    * @param parallelStream whether this stream is parallel or not
    * @param segments the segments to include in this operation
    * @param keysToInclude which keys to include
    * @param keysToExclude which keys to exclude
    * @param includeLoader whether or not a cache loader should be utilized
    * @param operation the operation to perform
    * @param  the type of value from the operation
    */
    void streamOperation(Object requestId, Address origin, boolean parallelStream, Set segments,
           Set keysToInclude, Set keysToExclude, boolean includeLoader, TerminalOperation operation);

   /**
    * Stream operation for a non key aware operation with rehash enabled.
    * @param requestId the originating request id
    * @param origin the node this request came from
    * @param parallelStream whether this stream is parallel or not
    * @param segments the segments to include in this operation
    * @param keysToInclude which keys to include
    * @param keysToExclude which keys to exclude
    * @param includeLoader whether or not a cache loader should be utilized
    * @param operation the operation to perform
    * @param  the type of value from the operation
    */
    void streamOperationRehashAware(Object requestId, Address origin, boolean parallelStream, Set segments,
           Set keysToInclude, Set keysToExclude, boolean includeLoader, TerminalOperation operation);

   /**
    * Stream operation for a key aware operation without rehash enabled
    * @param requestId the originating request id
    * @param origin the node this request came from
    * @param parallelStream whether this stream is parallel or not
    * @param segments the segments to include in this operation
    * @param keysToInclude which keys to include
    * @param keysToExclude which keys to exclude
    * @param includeLoader whether or not a cache loader should be utilized
    * @param operation the operation to perform
    * @param  the type of value from the operation
    */
    void streamOperation(Object requestId, Address origin, boolean parallelStream, Set segments,
           Set keysToInclude, Set keysToExclude, boolean includeLoader,
           KeyTrackingTerminalOperation operation);

   /**
    * Stream operation for a key aware operation with rehash enabled
    * @param requestId the originating request id
    * @param origin the node this request came from
    * @param parallelStream whether this stream is parallel or not
    * @param segments the segments to include in this operation
    * @param keysToInclude which keys to include
    * @param keysToExclude which keys to exclude
    * @param includeLoader whether or not a cache loader should be utilized
    * @param operation the operation to perform
    * @param  the type of response
    */
    void streamOperationRehashAware(Object requestId, Address origin, boolean parallelStream, Set segments,
           Set keysToInclude, Set keysToExclude, boolean includeLoader,
           KeyTrackingTerminalOperation operation);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy