public final class StripedExecutor extends Object implements Executor
Modifier and Type | Field and Description |
---|---|
static AtomicLong |
THREAD_ID_GENERATOR |
Constructor and Description |
---|
StripedExecutor(ILogger logger,
String threadNamePrefix,
int threadCount,
int maximumQueueCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable command) |
List<BlockingQueue<Runnable>> |
getWorkQueues() |
int |
getWorkQueueSize()
Returns the total number of tasks pending to be executed.
|
boolean |
isLive()
Checks if this StripedExecutor is alive (so not shut down).
|
long |
processedCount()
Returns the total number of processed events.
|
void |
shutdown()
Shuts down this StripedExecutor.
|
public static final AtomicLong THREAD_ID_GENERATOR
public int getWorkQueueSize()
public long processedCount()
public void shutdown()
No checking is done to see if the StripedExecutor already is shut down, so it should be called only once.
If there is any pending work, it will be thrown away.
public boolean isLive()
public List<BlockingQueue<Runnable>> getWorkQueues()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.