U
- Data typepublic interface ToQueue<U>
Modifier and Type | Method and Description |
---|---|
void |
addToQueue(Queue queue) |
QueueFactory<U> |
getQueueFactory() |
Queue<U> |
toQueue() |
Queue<U> |
toQueue(java.util.function.Function<Queue,Queue> modifier)
Method to create a Queue that can be modified by supplied funciton
|
<K> void |
toQueue(java.util.Map<K,Queue<U>> shards,
java.util.function.Function<? super U,? extends K> sharder)
Sharded data in queues
|
<K> void toQueue(java.util.Map<K,Queue<U>> shards, java.util.function.Function<? super U,? extends K> sharder)
shards
- Map of Queues sharded by key Ksharder
- Sharder functionQueueFactory<U> getQueueFactory()
Queue<U> toQueue(java.util.function.Function<Queue,Queue> modifier)
modifier
- Function to modify default Queuevoid addToQueue(Queue queue)