public interface DelayQueueStrategy<T extends Delayed> extends IsQueueStrategy<DelayQueue<T>,T>
Strategy for a delay queue.
| Modifier and Type | Method and Description |
|---|---|
static <T extends Delayed> |
create()
Creates a new delay queue strategy.
|
default DelayQueue<T> |
get()
Returns a new collection of requested type.
|
default DelayQueue<T> |
get(Collection<T> collection)
Returns a new collection for the given collection.
|
isList, isQueue, isSetdefault DelayQueue<T> get(Collection<T> collection)
IsCollectionStrategyReturns a new collection for the given collection.
get in interface IsCollectionStrategy<DelayQueue<T extends Delayed>,T extends Delayed>get in interface IsQueueStrategy<DelayQueue<T extends Delayed>,T extends Delayed>collection - input collectiondefault DelayQueue<T> get()
IsCollectionStrategyReturns a new collection of requested type.
get in interface IsCollectionStrategy<DelayQueue<T extends Delayed>,T extends Delayed>get in interface IsQueueStrategy<DelayQueue<T extends Delayed>,T extends Delayed>static <T extends Delayed> DelayQueueStrategy<T> create()
Creates a new delay queue strategy.
T - type for the objects in the queueCopyright © 2016–2017. All rights reserved.