public class PipeLine extends CommandInvoker<java.lang.Void,Chunk>
| Constructor and Description |
|---|
PipeLine(CommandInvoker[] invokers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the producer.
|
void |
flush() |
java.lang.Class<java.lang.Void> |
getConsumedType()
Returns the class of the element generic type.
|
java.lang.Class<Chunk> |
getProducedType()
Returns the class of the produced type.
|
void |
open(CommandContext<? super Chunk> consumer)
Open the producer with the specified consumer.
|
void |
provide(java.lang.Void element)
Provide an element.
|
invokepublic PipeLine(CommandInvoker[] invokers)
public java.lang.Class<java.lang.Void> getConsumedType()
Consumerpublic java.lang.Class<Chunk> getProducedType()
Producerpublic void open(CommandContext<? super Chunk> consumer)
Producerconsumer - the consumerpublic void provide(java.lang.Void element)
throws java.io.IOException
Consumerelement - the provided elementjava.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
Producerjava.io.IOException - any io exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.