public <T> Future<T> submit(Job<T> callable, Callback<T> callback, String description) {
Bundle bundle = callable.getBundle();
Preference preference = m_strategy.select(bundle);
QueueService selected = m_defaultQueue;
switch (preference) {
case ASYNC:
selected = m_asyncQueue;
break;
case SYNC:
selected = m_syncQueue;
break;
}
return selected.submit(callable, callback, description);
}