| 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 com. Give a ReentrantContext instance for the current thread |
| public final void | release(final K
ReentrantContext instance ctx)Implements abstract com. Restore the given ReentrantContext instance for reuse |
| 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 com. Give a ReentrantContext instance for the current thread
| |
| release | back to summary |
|---|---|
| public final void release(final K ctx) Implements abstract com. Restore the given ReentrantContext instance for reuse
| |