public class ConsumerPool<M extends Message> extends AbstractCallablePool<ConsumerStatus>
AbstractCallablePool.NamedThreadFactory
Modifier and Type | Field and Description |
---|---|
protected List<List<LogPartition>> |
defaultAssignments |
protected ConsumerFactory<M> |
factory |
protected String |
logName |
protected LogManager |
manager |
protected ConsumerPolicy |
policy |
nbThreads, supplyThreadPool, threadPool
Constructor and Description |
---|
ConsumerPool(String logName,
LogManager manager,
ConsumerFactory<M> factory,
ConsumerPolicy policy) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterCall(List<ConsumerStatus> ret) |
protected static short |
computeNbThreads(short maxConcurrency,
short maxThreads) |
protected Callable<ConsumerStatus> |
getCallable(int i) |
String |
getConsumerGroupName() |
protected List<List<LogPartition>> |
getDefaultAssignments() |
protected ConsumerStatus |
getErrorStatus()
Value to return when there was an exception during execution
|
protected String |
getThreadPrefix() |
close, getNbThreads, runPool, start
protected final LogManager manager
protected final ConsumerFactory<M extends Message> factory
protected final ConsumerPolicy policy
protected final List<List<LogPartition>> defaultAssignments
public ConsumerPool(String logName, LogManager manager, ConsumerFactory<M> factory, ConsumerPolicy policy)
protected static short computeNbThreads(short maxConcurrency, short maxThreads)
public String getConsumerGroupName()
protected ConsumerStatus getErrorStatus()
AbstractCallablePool
getErrorStatus
in class AbstractCallablePool<ConsumerStatus>
protected Callable<ConsumerStatus> getCallable(int i)
getCallable
in class AbstractCallablePool<ConsumerStatus>
protected String getThreadPrefix()
getThreadPrefix
in class AbstractCallablePool<ConsumerStatus>
protected void afterCall(List<ConsumerStatus> ret)
afterCall
in class AbstractCallablePool<ConsumerStatus>
protected List<List<LogPartition>> getDefaultAssignments()
Copyright © 2018 Nuxeo. All rights reserved.