| Constructor and Description |
|---|
RedisBackend() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close objects that need to be closed.
|
void |
connect()
Setup the client.
|
java.lang.String |
get(java.lang.String queueName,
java.lang.Long hardTimeLimit)
Obtain a message from the queue
|
void |
push(SubtaskRunner task,
AsyncResult result)
Push to the queue.
|
public void connect()
throws BackendConnectionException
connect in interface BackendBackendConnectionException - thrown on failurepublic void push(SubtaskRunner task, AsyncResult result) throws PushException
push in interface Backendtask - The task pushing to the queueresult - Async resultPushException - Thrown on failurepublic java.lang.String get(java.lang.String queueName,
java.lang.Long hardTimeLimit)
throws GetException,
java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
get in interface BackendqueueName - Queue to get fromhardTimeLimit - Absolute time limitGetException - Thrown on getjava.io.IOException - Thrown outside of getjava.util.concurrent.ExecutionException - Thrown outside of getjava.lang.InterruptedException - Thrown outside of getjava.util.concurrent.TimeoutException - Thrown outside of getpublic void close()
close in interface java.lang.AutoCloseable