public class EnforcedQueueService extends ForwardingQueueService
ASYNCHRONOUS_QUEUE_MODE, GLOABL_QUEUE_SCOPE, PREFERENCE_QUEUE_MODE, QUEUE_MODE_PROPERTY, QUEUE_SCOPE_PROPERTY, SYNCHRONOUS_QUEUE_MODE| Constructor and Description |
|---|
EnforcedQueueService(PreferenceSelection strategy,
LifecycleQueueService queueService,
Preference enforced,
Log logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected LifecycleQueueService |
delegate() |
<T> java.util.concurrent.Future<T> |
submit(Job<T> callable)
Submits a job to the queue service.
|
<T> java.util.concurrent.Future<T> |
submit(Job<T> callable,
Callback<T> callback,
java.lang.String description)
Submits a job to the queue service.
|
<T> java.util.concurrent.Future<T> |
submit(Job<T> callable,
java.lang.String description)
Submits a job to the queue service.
|
addQueueListener, getCurrents, getFinished, getWaiters, getWaitersInfo, removeQueueListener, start, stoppublic EnforcedQueueService(PreferenceSelection strategy, LifecycleQueueService queueService, Preference enforced, Log logger)
strategy - the strategyqueueService - the queue serviceenforced - the preference we want to enforcelogger - the loggerprotected LifecycleQueueService delegate()
delegate in class ForwardingQueueServicepublic <T> java.util.concurrent.Future<T> submit(Job<T> callable, Callback<T> callback, java.lang.String description)
QueueServicesubmit in interface QueueServicesubmit in class ForwardingQueueServicecallable - the jobcallback - callback called when the job is processeddescription - a description of the jobpublic <T> java.util.concurrent.Future<T> submit(Job<T> callable, java.lang.String description)
QueueServicesubmit in interface QueueServicesubmit in class ForwardingQueueServicecallable - the jobdescription - a description of the jobpublic <T> java.util.concurrent.Future<T> submit(Job<T> callable)
QueueServicesubmit in interface QueueServicesubmit in class ForwardingQueueServicecallable - the jobCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.