Package com.rabbitmq.client.impl
Class ConsumerWorkService
- java.lang.Object
-
- com.rabbitmq.client.impl.ConsumerWorkService
-
public final class ConsumerWorkService extends Object
-
-
Constructor Summary
Constructors Constructor Description ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout)
ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWork(Channel channel, Runnable runnable)
int
getShutdownTimeout()
void
registerKey(Channel channel)
void
setUnlimited(Channel channel, boolean unlimited)
void
shutdown()
Stop executing all consumer workvoid
stopWork(Channel channel)
Stop executing all consumer work for a particular channelboolean
usesPrivateExecutor()
-
-
-
Constructor Detail
-
ConsumerWorkService
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout)
-
ConsumerWorkService
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout)
-
-
Method Detail
-
getShutdownTimeout
public int getShutdownTimeout()
-
shutdown
public void shutdown()
Stop executing all consumer work
-
stopWork
public void stopWork(Channel channel)
Stop executing all consumer work for a particular channel- Parameters:
channel
- to stop consumer work for
-
registerKey
public void registerKey(Channel channel)
-
setUnlimited
public void setUnlimited(Channel channel, boolean unlimited)
-
usesPrivateExecutor
public boolean usesPrivateExecutor()
- Returns:
- true if executor used by this work service is managed by it and wasn't provided by the user
-
-