org.apache.commons.pipeline
Interface Feeder
- All Known Implementing Classes:
- TestFeeder
public interface Feeder
This interface represents a data channel into which objects can be fed.
Feeders act as intermediaries between stages in a pipeline and the drivers
for subsequent stages. Each StageDriver
implementation will
ordinarily provide a custom Feeder implementation that integrates receiving
objects with its internal stage processing workflow.
Field Summary |
static Feeder |
VOID
This Feeder implementation provides a standard, no-op sink for objects. |
Method Summary |
void |
feed(Object obj)
Feeds the specified object to an underlying receiver. |
VOID
static final Feeder VOID
- This Feeder implementation provides a standard, no-op sink for objects.
It is useful for situations like the terminus of a pipeline, where
there is nothing to be done with a generated object.
feed
void feed(Object obj)
- Feeds the specified object to an underlying receiver.
- Parameters:
obj
- The object being fed to the receiver.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.