public abstract class AbstractPipeConsumer<T> extends Object implements PipeConsumer<T>
PipeConsumer| Modifier and Type | Field and Description | 
|---|---|
protected String | 
name  | 
protected Map<String,String> | 
params  | 
| Constructor and Description | 
|---|
AbstractPipeConsumer()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected String | 
getName()  | 
protected Map<String,String> | 
getParameters()  | 
void | 
initConsumer(String name,
            Map<String,String> params)
Initialize the Consumer when the  
EventBundlePipe is initialized | 
protected abstract boolean | 
processEventBundles(List<EventBundle> bundles)  | 
boolean | 
receiveMessage(List<T> messages)
Callback when a batch of messages is available 
 | 
protected abstract List<EventBundle> | 
unmarshallEventBundle(List<T> messages)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdown, waitForCompletionpublic AbstractPipeConsumer()
public void initConsumer(String name, Map<String,String> params)
PipeConsumerEventBundlePipe is initializedinitConsumer in interface PipeConsumer<T>protected Map<String,String> getParameters()
public boolean receiveMessage(List<T> messages)
PipeConsumerreceiveMessage in interface PipeConsumer<T>protected abstract List<EventBundle> unmarshallEventBundle(List<T> messages)
protected abstract boolean processEventBundles(List<EventBundle> bundles)
Copyright © 2019 Nuxeo. All rights reserved.