Search in sources :

Example 1 with InMemoryCursorIteratorProvider

use of org.mule.runtime.core.internal.streaming.object.InMemoryCursorIteratorProvider in project mule by mulesoft.

the class InMemoryCursorIteratorProviderFactory method resolve.

/**
 * {@inheritDoc}
 *
 * @return a new {@link CursorIteratorProvider} wrapped in an {@link Either}
 */
@Override
protected Object resolve(Iterator iterator, CoreEvent event) {
    InMemoryCursorIteratorProvider inMemoryCursorIteratorProvider = new InMemoryCursorIteratorProvider(iterator, config);
    inMemoryCursorIteratorProvider.setAnnotations(getAnnotations());
    return inMemoryCursorIteratorProvider;
}
Also used : InMemoryCursorIteratorProvider(org.mule.runtime.core.internal.streaming.object.InMemoryCursorIteratorProvider)

Aggregations

InMemoryCursorIteratorProvider (org.mule.runtime.core.internal.streaming.object.InMemoryCursorIteratorProvider)1