public class AdminClientImpl extends AbstractAdminClient
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_CHECK_CONNECTION_BEFORE_USE |
| Constructor and Description |
|---|
AdminClientImpl(Config config)
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config.
|
AdminClientImpl(Config config,
boolean checkConnectionBeforeUse)
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config.
|
AdminClientImpl(Config config,
long initialDelay,
long period,
TimeUnit timeUnit)
Create a new AdminClientImpl, which creates it's own connection to Redis using values from the config and
spawns a thread to ensure the connection stays open.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPublish(String queue,
String jobJson)
Actually publish the serialized job.
|
void |
end()
Quits the connection to the Redis server.
|
doPublish, getNamespace, publish, publish, shutdownWorkers, shutdownWorkers, togglePausedWorkers, togglePausedWorkerspublic static final boolean DEFAULT_CHECK_CONNECTION_BEFORE_USE
public AdminClientImpl(Config config)
config - used to create a connection to Redispublic AdminClientImpl(Config config, boolean checkConnectionBeforeUse)
config - used to create a connection to RedischeckConnectionBeforeUse - check to make sure the connection is alive before using itIllegalArgumentException - if the config is nullpublic AdminClientImpl(Config config, long initialDelay, long period, TimeUnit timeUnit)
config - used to create a connection to RedisinitialDelay - the time to delay first connection checkperiod - the period between successive connection checkstimeUnit - the time unit of the initialDelay and period parametersprotected void doPublish(String queue, String jobJson)
AbstractAdminClientdoPublish in class AbstractAdminClientqueue - the queue to add the Job tojobJson - the serialized Jobpublic void end()
AdminClientCopyright © 2011-2013. All Rights Reserved.