T
- used to specify the type of the provided queues.public interface QueueProvider<T extends DeployerQueue>
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PATH
The name of the config element for the queues configuration.
|
static String |
CONFIG_VALUE_ADAPTER_ID
Configuration value that holds the Adapter Id.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(com.sdl.delivery.configuration.Configuration configuration)
Configure the 'Queue Provider' with the given configuration.
|
Optional<T> |
get(String queueId)
Provide the queue by the given queue id.
|
String |
getAdapterId(String queueId)
Provide adapter id for given queue id.
|
List<T> |
getAll()
Provide all the configured and instantiated queues.
|
T |
getDefault()
Provides the default queue.
|
Optional<T> |
getForVerb(String verb)
Get a queue for a specific verb.
|
Set<String> |
getIds()
Provide all the ids.
|
Set<String> |
getQueueVerbs(String queueId)
Provide set of verbs supported by the queue.
|
static final String CONFIG_PATH
static final String CONFIG_VALUE_ADAPTER_ID
void configure(com.sdl.delivery.configuration.Configuration configuration) throws com.sdl.delivery.configuration.ConfigurationException
configuration
- The given configuration.com.sdl.delivery.configuration.ConfigurationException
- if provider could not be configured (i.e. there is no queue configured
as default one).Set<String> getIds()
T getDefault()
Optional<T> get(String queueId)
queueId
- The given queue id.Optional<T> getForVerb(String verb)
verb
- The verb to get the queue for.List<T> getAll()
Set<String> getQueueVerbs(String queueId)
queueId
- The given queue id.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries