Package | Description |
---|---|
org.apache.river.concurrent |
This package provides a decorating utility that enables weak, soft, strong
or time references to be used in any collection implementing standard
Java Framework Interfaces
Expected behaviour of reference types may vary between platforms
and should not be depended upon other than; weak references will
be collected when no further strong references remain and soft
references may be collected at any time the JVM's available memory
is under pressure and the referent is softly reachable.
|
Modifier and Type | Method and Description |
---|---|
static Ref |
Ref.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ref[] |
Ref.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <T> BlockingDeque<T> |
RC.blockingDeque(BlockingDeque<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a BlockingDeque for holding references so it appears as a BlockingDeque
containing referents.
|
static <T> BlockingQueue<T> |
RC.blockingQueue(BlockingQueue<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a BlockingQueue for holding references so it appears as a BlockingQueue
containing referents.
|
static <T> Collection<T> |
RC.collection(Collection<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a Collection for holding references so it appears as a Collection
containing referents.
|
static <K,V> ConcurrentMap<K,V> |
RC.concurrentMap(ConcurrentMap<Referrer<K>,Referrer<V>> internal,
Ref key,
Ref value,
long gcKeyCycle,
long gcValCycle)
Decorate a ConcurrentMap for holding references so it appears as a ConcurrentMap
containing referents.
|
static <K,V> ConcurrentNavigableMap<K,V> |
RC.concurrentNavigableMap(ConcurrentNavigableMap<Referrer<K>,Referrer<V>> internal,
Ref key,
Ref value,
long gcKeyCycle,
long gcValCycle)
Decorate a ConcurrentNavigableMap for holding references so it appears as a
ConcurrentNavigableMap containing referents.
|
static <T> Deque<T> |
RC.deque(Deque<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a Deque for holding references so it appears as a Deque
containing referents.
|
static <T> List<T> |
RC.list(List<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a List for holding references so it appears as a List
containing referents.
|
static <K,V> Map<K,V> |
RC.map(Map<Referrer<K>,Referrer<V>> internal,
Ref key,
Ref value,
long gcKeyCycle,
long gcValCycle)
Decorate a Map for holding references so it appears as a Map
containing referents.
|
static <K,V> NavigableMap<K,V> |
RC.navigableMap(NavigableMap<Referrer<K>,Referrer<V>> internal,
Ref key,
Ref value,
long gcKeyCycle,
long gcValCycle)
Decorate a NavigableMap for holding Referrers so it appears as a NavigableMap
containing referents.
|
static <T> NavigableSet<T> |
RC.navigableSet(NavigableSet<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a NavigableSet for holding references so it appears as a NavigableSet
containing referents.
|
static <T> Queue<T> |
RC.queue(Queue<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a Queue for holding references so it appears as a Queue
containing referents.
|
static <T> Set<T> |
RC.set(Set<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a Set for holding references so it appears as a Set
containing referents.
|
static <K,V> SortedMap<K,V> |
RC.sortedMap(SortedMap<Referrer<K>,Referrer<V>> internal,
Ref key,
Ref value,
long gcKeyCycle,
long gcValCycle)
Decorate a SortedMap for holding references so it appears as a SortedMap
containing referents.
|
static <T> SortedSet<T> |
RC.sortedSet(SortedSet<Referrer<T>> internal,
Ref type,
long gcCycle)
Decorate a SortedSet for holding references so it appears as a SortedSet
containing referents.
|
Copyright © 2016–2018. All rights reserved.