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