org.crsh.io
Interface Consumer<C>

Type Parameters:
C - the consumed generic type
All Superinterfaces:
Flushable, Pipe<C>
All Known Subinterfaces:
CommandInvoker<C,P>, Filter<C,P>, InvocationContext<P>, ProducerConsumer<C,P>, ProducerContext<P>
All Known Implementing Classes:
GroovyScriptCommand, InnerInvocationContext, InvocationContextImpl, InvokerPipeFilter, PipeCommandProxy, PipeLine, ProcessInvocationContext, SinkPipeFilter, ToChunkPipeFilter

public interface Consumer<C>
extends Pipe<C>

The consumer is a pipe that defines a type of consumed object.


Method Summary
 Class<C> getConsumedType()
          Returns the class of the consumed type.
 
Methods inherited from interface org.crsh.io.Pipe
provide
 
Methods inherited from interface java.io.Flushable
flush
 

Method Detail

getConsumedType

Class<C> getConsumedType()
Returns the class of the consumed type.

Returns:
the consumed type


Copyright © 2013 eXo Platform SAS. All Rights Reserved.