public class FairRemoteQueueTransferScheduler extends RemoteQueueTransferScheduler
maxConcurrentRequests, processors, scheduledCount| Constructor and Description |
|---|
FairRemoteQueueTransferScheduler(int maxConcurrentRequests,
QueueManager queueManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Queue item) |
void |
addLocalToRemoteQueueProcessor(Queue queue,
LocalToRemoteQueueProcessor processor) |
void |
complete(Queue queue) |
int |
drainTo(Collection<? super Runnable> c) |
protected Runnable |
getNextRemoteTransfer() |
void |
onNotEmpty(Queue queue) |
void |
remove(Queue item) |
void |
removeLocalToRemoteQueueProcessor(Queue queue) |
int |
size() |
Runnable |
take() |
add, contains, drainTo, getLocalToRemoteQueueProcessorSize, getMaxConcurrentRequests, getScheduledCount, getWorkListSize, iterator, offer, offer, peek, poll, poll, put, registerMBean, remainingCapacity, remove, setMaxConcurrentRequestsaddAll, clear, element, removecontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringpublic FairRemoteQueueTransferScheduler(int maxConcurrentRequests,
QueueManager queueManager)
public void addLocalToRemoteQueueProcessor(Queue queue, LocalToRemoteQueueProcessor processor)
addLocalToRemoteQueueProcessor in class RemoteQueueTransferSchedulerpublic void removeLocalToRemoteQueueProcessor(Queue queue)
removeLocalToRemoteQueueProcessor in class RemoteQueueTransferSchedulerprotected Runnable getNextRemoteTransfer() throws InterruptedException
InterruptedExceptionpublic void complete(Queue queue)
public void remove(Queue item)
public void add(Queue item)
public void onNotEmpty(Queue queue)
onNotEmpty in interface QueueListeneronNotEmpty in class RemoteQueueTransferSchedulerpublic Runnable take() throws InterruptedException
take in interface BlockingQueue<Runnable>take in class RemoteQueueTransferSchedulerInterruptedExceptionpublic int drainTo(Collection<? super Runnable> c)
drainTo in interface BlockingQueue<Runnable>drainTo in class RemoteQueueTransferSchedulerpublic int size()
size in interface Collection<Runnable>size in class RemoteQueueTransferSchedulerCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.