public abstract class AsyncAutomationClient extends AbstractAutomationClient
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
async |
protected long |
asyncAwaitTerminationTimeout
Timeout in milliseconds for the wait of the asynchronous thread pool termination.
|
adapterManager, registry, requestInterceptor, url
Constructor and Description |
---|
AsyncAutomationClient(String url)
Instantiates a new asynchronous automation client with the default timeout for the wait of the asynchronous
thread pool termination: 2 seconds.
|
AsyncAutomationClient(String url,
ExecutorService executor)
Instantiates a new asynchronous automation client with the given asynchronous executor and the default timeout
for the wait of the asynchronous thread pool termination: 2 seconds.
|
AsyncAutomationClient(String url,
ExecutorService executor,
long asyncAwaitTerminationTimeout)
Instantiates a new asynchronous automation client with the given asynchronous executor and the given timeout in
milliseconds for the wait of the asynchronous thread pool termination.
|
AsyncAutomationClient(String url,
long asyncAwaitTerminationTimeout)
Instantiates a new asynchronous automation client with the given timeout in milliseconds for the wait of the
asynchronous thread pool termination.
|
Modifier and Type | Method and Description |
---|---|
void |
asyncExec(Runnable runnable) |
void |
shutdown()
Cleanup any resources held by this client.
|
connect, createSession, getAdapter, getBaseUrl, getRegistry, getRequestInterceptor, getSession, getSession, getSession, getSession, getSession, getSession, login, newConnector, registerAdapter, registerPojoMarshaller, setBasicAuth, setRequestInterceptor, setSharedRegistryExpirationDelay
protected ExecutorService async
protected long asyncAwaitTerminationTimeout
public AsyncAutomationClient(String url)
public AsyncAutomationClient(String url, ExecutorService executor)
public AsyncAutomationClient(String url, long asyncAwaitTerminationTimeout)
public AsyncAutomationClient(String url, ExecutorService executor, long asyncAwaitTerminationTimeout)
public void asyncExec(Runnable runnable)
asyncExec
in class AbstractAutomationClient
public void shutdown()
AutomationClient
shutdown
in interface AutomationClient
shutdown
in class AbstractAutomationClient
Copyright © 2015 Nuxeo SA. All rights reserved.