AsyncInvoker
, InvokerInfo
public class SingleThreadInvoker extends java.lang.Object implements AsyncInvoker, InvokerInfo
Constructor | Description |
---|---|
SingleThreadInvoker() |
|
SingleThreadInvoker(java.lang.String name) |
|
SingleThreadInvoker(java.lang.String name,
int queueSize) |
Modifier and Type | Method | Description |
---|---|---|
static void |
awaitTermination(java.lang.Runnable completionHandler) |
Deprecated.
It is for internal use only!
|
void |
dispose() |
Makes a hint to invoker that it's not used anymore and, PROBABLY,
should be stopped and all associated resources - freed.
|
long |
getInvokesCount() |
|
long |
getInvokesRejected() |
|
static int |
getLiveInvokerCount() |
Check count of invokers that have not been released or disposed yet.
|
java.lang.String |
getName() |
|
int |
getQueueMaxSize() |
|
int |
getQueueSize() |
|
static java.lang.String |
getStateInfo() |
Deprecated.
for internal use only!!!
|
void |
invoke(java.lang.Runnable target) |
Submit the task to this invoker.
|
void |
release() |
|
void |
unused() |
|
void |
used() |
public SingleThreadInvoker()
public SingleThreadInvoker(java.lang.String name)
public SingleThreadInvoker(java.lang.String name, int queueSize)
public java.lang.String getName()
public void invoke(java.lang.Runnable target)
AsyncInvoker
invoke
in interface AsyncInvoker
target
- Task to executepublic void release()
public void dispose()
AsyncInvoker
dispose
in interface AsyncInvoker
public void used()
public void unused()
public int getQueueMaxSize()
getQueueMaxSize
in interface InvokerInfo
public int getQueueSize()
getQueueSize
in interface InvokerInfo
public long getInvokesCount()
getInvokesCount
in interface InvokerInfo
public long getInvokesRejected()
getInvokesRejected
in interface InvokerInfo
public static int getLiveInvokerCount()
@Deprecated public static void awaitTermination(java.lang.Runnable completionHandler)
@Deprecated public static java.lang.String getStateInfo()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.