public final class ConsumerWorkService extends Object
Constructor and Description |
---|
ConsumerWorkService(ExecutorService executor,
ThreadFactory threadFactory,
int shutdownTimeout) |
ConsumerWorkService(ExecutorService executor,
ThreadFactory threadFactory,
int queueingTimeout,
int shutdownTimeout) |
Modifier and Type | Method and 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 work
|
void |
stopWork(Channel channel)
Stop executing all consumer work for a particular channel
|
boolean |
usesPrivateExecutor() |
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int queueingTimeout, int shutdownTimeout)
public ConsumerWorkService(ExecutorService executor, ThreadFactory threadFactory, int shutdownTimeout)
public int getShutdownTimeout()
public void shutdown()
public void stopWork(Channel channel)
channel
- to stop consumer work forpublic void registerKey(Channel channel)
public void setUnlimited(Channel channel, boolean unlimited)
public boolean usesPrivateExecutor()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.