public class PipelineSink extends Object implements InvocationHandler
Constructor and Description |
---|
PipelineSink(List<Sink> pipeline)
Constructs a PipelineSink for a given List of Sinks.
|
Modifier and Type | Method and Description |
---|---|
void |
addSink(Sink sink)
Add a Sink to the List of Sinks.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke a Method on this PipelineSink.
|
static Sink |
newInstance(List<Sink> pipeline)
Returns an instance of a PipelineSink as a Sink.
|
public PipelineSink(List<Sink> pipeline)
pipeline
- A List of Sinks.public void addSink(Sink sink)
sink
- the Sink to add.public Object invoke(Object proxy, Method method, Object[] args) throws IllegalAccessException, InvocationTargetException
invoke
in interface InvocationHandler
IllegalAccessException
- if any.InvocationTargetException
- if any.public static Sink newInstance(List<Sink> pipeline)
pipeline
- A List of Sinks.Sink
object.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.