public abstract class AbstractCursorIteratorProviderFactory extends Object implements CursorIteratorProviderFactory
CursorIteratorProviderFactory which contains all the base behaviour and template
methods.
It interacts with the CursorManager in order to track all allocated resources and make
sure they're properly disposed of once they're no longer necessary.
| Constructor and Description |
|---|
AbstractCursorIteratorProviderFactory(StreamingManager streamingManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object value) |
Object |
of(Event event,
Iterator iterator)
Optionally creates a new
CursorProvider to buffer the given value. |
protected abstract Object |
resolve(Iterator iterator,
Event event)
Implementations should use this method to actually create the output value
|
public AbstractCursorIteratorProviderFactory(StreamingManager streamingManager)
public final Object of(Event event, Iterator iterator)
CursorProvider to buffer the given value.
Implementations might resolve that the given stream is/should not be buffered and thus it will return the same given stream. In that case, the stream will be unaltered.
of in interface CursorProviderFactory<Iterator>event - the event on which buffering is talking placeiterator - the stream to be cursoredCursorProvider or the same given inputStreamprotected abstract Object resolve(Iterator iterator, Event event)
iterator - the streaming iteratorevent - the event on which streaming is happeningpublic boolean accepts(Object value)
accepts in interface CursorProviderFactory<Iterator>value - a streamtrue if the value is a StreamingIteratorCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.