public class PipeLine extends CommandInvoker<Void,Chunk>
| Modifier and Type | Field and Description |
|---|---|
private CommandContext<?> |
current
.
|
private CommandInvoker[] |
invokers
.
|
| Constructor and Description |
|---|
PipeLine(CommandInvoker[] invokers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the producer.
|
void |
flush() |
Class<Void> |
getConsumedType()
Returns the class of the element generic type.
|
KeyHandler |
getKeyHandler()
Return the key handler or null if the invoker cannot handler key events.
|
Class<Chunk> |
getProducedType()
Returns the class of the produced type.
|
void |
open(CommandContext<? super Chunk> consumer)
Open the producer with the specified consumer.
|
private CommandContext |
open(int index,
CommandContext last) |
void |
provide(Void element)
Provide an element.
|
invokeprivate final CommandInvoker[] invokers
private CommandContext<?> current
public PipeLine(CommandInvoker[] invokers)
public Class<Void> getConsumedType()
Consumerpublic Class<Chunk> getProducedType()
Producerpublic void open(CommandContext<? super Chunk> consumer)
Producerconsumer - the consumerprivate CommandContext open(int index, CommandContext last)
public KeyHandler getKeyHandler()
CommandInvokergetKeyHandler in class CommandInvoker<Void,Chunk>public void provide(Void element) throws IOException
Consumerelement - the provided elementIOExceptionpublic void flush() throws IOException
IOExceptionpublic void close() throws IOException
ProducerIOException - any io exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.