Package com.rabbitmq.client.impl
Class ConsumerWorkService
- java.lang.Object
- 
- com.rabbitmq.client.impl.ConsumerWorkService
 
- 
 public final class ConsumerWorkService extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout)ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWork(Channel channel, Runnable runnable)intgetShutdownTimeout()voidregisterKey(Channel channel)voidsetUnlimited(Channel channel, boolean unlimited)voidshutdown()Stop executing all consumer workvoidstopWork(Channel channel)Stop executing all consumer work for a particular channelbooleanusesPrivateExecutor()
 
- 
- 
- 
Constructor Detail- 
ConsumerWorkServicepublic ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout) 
 - 
ConsumerWorkServicepublic ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout) 
 
- 
 - 
Method Detail- 
getShutdownTimeoutpublic int getShutdownTimeout() 
 - 
shutdownpublic void shutdown() Stop executing all consumer work
 - 
stopWorkpublic void stopWork(Channel channel) Stop executing all consumer work for a particular channel- Parameters:
- channel- to stop consumer work for
 
 - 
registerKeypublic void registerKey(Channel channel) 
 - 
setUnlimitedpublic void setUnlimited(Channel channel, boolean unlimited) 
 - 
usesPrivateExecutorpublic boolean usesPrivateExecutor() - Returns:
- true if executor used by this work service is managed by it and wasn't provided by the user
 
 
- 
 
-