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

org.infinispan.stream.impl.intops.IntermediateOperation Maven / Gradle / Ivy

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

import org.infinispan.factories.ComponentRegistry;

import java.util.stream.BaseStream;

/**
 * Intermediate operation that can be applied to a stream to change its processing.
 * @param  the type of the input stream
 * @param  the input stream type
 * @param  the type of the output stream
 * @param  the output stream type
 */
public interface IntermediateOperation,
        OutputType, OutputStream extends BaseStream> {
   /**
    * Performs the actualy intermediate operation returning the resulting stream
    * @param stream the stream to have the operation performed on
    * @return the resulting stream after the operation was applied
    */
   OutputStream perform(InputStream stream);

   /**
    * Handles injection of components for various dependencies that the intermediate operation has
    * @param registry the registry to use
    */
   default void handleInjection(ComponentRegistry registry) {
      // Default is nothing is done
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy