public class LocalToRemoteQueueProcessor extends Object implements RemoteQueueTransferListener, Runnable
| Constructor and Description |
|---|
LocalToRemoteQueueProcessor(DistributedQueueManager dqm,
Queue localQueue,
RemoteQueueInfo remoteQueue,
AsyncHttpClientFactory httpFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConcurrentRequests() |
Queue |
getLocalQueue() |
String |
getName() |
boolean |
isAlive() |
boolean |
isKilled() |
void |
kill()
Kills the processor.
|
void |
notifyQueueOnRemoteBrokerIsNoLongerAvailable(String remoteBrokerUrl,
String queueName)
Callback when only a specific queue is now no longer available on a Remote
Broker.
|
void |
notifyRemoteBrokerIsNoLongerAvailable(String remoteBrokerUrl,
String errorMessage)
Callback when an entire remote broker is not available.
|
void |
run() |
void |
run(CompletionHandler completionHandler) |
void |
start() |
public LocalToRemoteQueueProcessor(DistributedQueueManager dqm, Queue localQueue, RemoteQueueInfo remoteQueue, AsyncHttpClientFactory httpFactory)
public Queue getLocalQueue()
public void start()
public boolean isAlive()
public String getName()
public int getConcurrentRequests()
public void kill()
public boolean isKilled()
public void notifyRemoteBrokerIsNoLongerAvailable(String remoteBrokerUrl, String errorMessage)
RemoteQueueTransferListenernotifyRemoteBrokerIsNoLongerAvailable in interface RemoteQueueTransferListenerremoteBrokerUrl - The url of the RemoteBroker to mark as Not Availablepublic void notifyQueueOnRemoteBrokerIsNoLongerAvailable(String remoteBrokerUrl, String queueName)
RemoteQueueTransferListenernotifyQueueOnRemoteBrokerIsNoLongerAvailable in interface RemoteQueueTransferListenerremoteBrokerUrl - The url of the RemoteBroker to mark as Not AvailablequeueName - The name of the queuepublic void run(CompletionHandler completionHandler)
Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.