Package com.rabbitmq.client.impl
Class ConsumerWorkService
java.lang.Object
com.rabbitmq.client.impl.ConsumerWorkService
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout) ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoidregisterKey(Channel channel) voidsetUnlimited(Channel channel, boolean unlimited) voidshutdown()Stop executing all consumer workvoidStop executing all consumer work for a particular channelboolean
-
Constructor Details
-
ConsumerWorkService
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout) -
ConsumerWorkService
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout)
-
-
Method Details
-
getShutdownTimeout
public int getShutdownTimeout() -
shutdown
public void shutdown()Stop executing all consumer work -
stopWork
Stop executing all consumer work for a particular channel- Parameters:
channel- to stop consumer work for
-
registerKey
-
setUnlimited
-
addWork
-
usesPrivateExecutor
public boolean usesPrivateExecutor()- Returns:
- true if executor used by this work service is managed by it and wasn't provided by the user
-