Modifier and Type | Field and Description |
---|---|
private final ConcurrentLinkedQueue |
Access | Constructor and Description |
---|---|
public | ReentrantContextProviderCLQ(final int
reference type refType)Create a new ReentrantContext provider using the given reference type among hard, soft or weak based using a ConcurrentLinkedQueue storage |
Modifier and Type | Method and Description |
---|---|
public final K | Returns: ReentrantContext instanceImplements abstract sun. |
public final void | release(final K
ReentrantContext instance ctx)Implements abstract sun. |
ctxQueue | back to summary |
---|---|
private final ConcurrentLinkedQueue<Reference<K>> ctxQueue |
ReentrantContextProviderCLQ | back to summary |
---|---|
public ReentrantContextProviderCLQ(final int refType) Create a new ReentrantContext provider using the given reference type among hard, soft or weak based using a ConcurrentLinkedQueue storage
|
acquire | back to summary |
---|---|
public final K acquire() Implements abstract sun. Give a ReentrantContext instance for the current thread
|
release | back to summary |
---|---|
public final void release(final K ctx) Implements abstract sun. Restore the given ReentrantContext instance for reuse
|