public abstract class EntityConsumer<P,E extends IEntity,C extends org.symphonyoss.s2.fugue.pipeline.IThreadSafeConsumer<E>> extends Object implements org.symphonyoss.s2.fugue.pipeline.IThreadSafeConsumer<P>
| Constructor and Description |
|---|
EntityConsumer(IModelRegistry modelRegistry,
Class<E> entityType,
C consumer,
org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<P> invalidMessageConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
consume(P item,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace) |
protected abstract Reader |
getReader(P item) |
public EntityConsumer(IModelRegistry modelRegistry, Class<E> entityType, C consumer, org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<P> invalidMessageConsumer)
public void consume(P item, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
public void close()
close in interface AutoCloseableclose in interface org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer<P>Copyright © 2018 Symphony Software Foundation. All rights reserved.