Uses of Interface
org.aksw.commons.util.ref.Ref
Packages that use Ref
-
Uses of Ref in org.aksw.commons.util.ref
Classes in org.aksw.commons.util.ref with type parameters of type RefModifier and TypeInterfaceDescriptioninterfaceRefDelegate<T,R extends Ref<T>> Interface with default methods that delegate Ref's methodsclassRefDelegateBase<T,R extends Ref<T>> Subinterfaces of Ref in org.aksw.commons.util.refModifier and TypeInterfaceDescriptioninterfaceRefDelegate<T,R extends Ref<T>> Interface with default methods that delegate Ref's methodsinterfaceRefFuture<T>In principle a typedef for Ref<CompletableFuture> Classes in org.aksw.commons.util.ref that implement RefModifier and TypeClassDescriptionclassRefDelegateBase<T,R extends Ref<T>> classclassRefImpl<T>Implementation of aRefTODO Avoid needless synchronization; a ConcurrentHashMap may help; ref.equals could do only reference comparisonFields in org.aksw.commons.util.ref declared as RefModifier and TypeFieldDescriptionLazyRef.backendRefprotected RRefDelegateBase.delegateLazyRef.rootRefFields in org.aksw.commons.util.ref with type parameters of type RefModifier and TypeFieldDescriptionLazyRef.backendRefSupplierRefImpl.childRefsSingletonLazyRef.refSupplierMethods in org.aksw.commons.util.ref that return RefModifier and TypeMethodDescriptionRef.acquire()Acquire a new reference with a given comment object Acquiration fails if isAlive() returns falsedefault <X> Ref<X>Ref.acquireMapped(Function<? super T, ? extends X> mapper) Return a ref with a new referent obtained by mapping this ref's value with mapper.static <T> Ref<T>RefImpl.create(T value, Object synchronizer, AutoCloseable releaseAction) static <T> Ref<T>RefImpl.create(T value, Object synchronizer, AutoCloseable releaseAction, Object comment) static <T> Ref<T>Create method where the close action is created from a provided lambda that accepts the valuestatic <T> Ref<T>RefImpl.createClosed()static <T extends AutoCloseable>
Ref<T>RefImpl.fromCloseable(T value, Object synchronizer) LazyRef.get()SingletonLazyRef.get()Every call to .get() returns a fresh reference that must eventually be released!Ref.getRootRef()Get the root referenceRefDelegate.getRootRef()RefImpl.getRootRef()Methods in org.aksw.commons.util.ref with parameters of type RefModifier and TypeMethodDescriptionstatic <T> RefFuture<T>Wrap an existing ref with completed futurestatic <T> RefFuture<T>RefFutureImpl.wrap(Ref<CompletableFuture<T>> delegate) A simple wrapping of an instance ofRef<CompletableFuture<T>>as a more handy instance ofRefFuture<T>.static <T> RefFuture<T>RefFutureImpl.wrap2(Ref<? extends CompletableFuture<Ref<T>>> delegate) Wrap a Ref<RefFuture> as a RefFuture . static <T> RefFuture<T>RefFutureImpl.wrap3(Ref<? extends Ref<? extends CompletableFuture<T>>> delegate) Method parameters in org.aksw.commons.util.ref with type arguments of type RefModifier and TypeMethodDescriptionstatic voidRefFutureImpl.cancelFutureOrCloseRef(CompletableFuture<? extends Ref<?>> future) static <T> LazyRef<T>static <T> SingletonLazyRef<T>static <T> SingletonLazyRef<T>static <T> RefFuture<T>RefFutureImpl.fromFuture(CompletableFuture<Ref<T>> future, Object synchronizer) Create a ref that upon close cancels the future or closes the ref when it is available sstatic <T> RefFuture<T>RefFutureImpl.wrap2(Ref<? extends CompletableFuture<Ref<T>>> delegate) Wrap a Ref<RefFuture> as a RefFuture . static <T> RefFuture<T>RefFutureImpl.wrap3(Ref<? extends Ref<? extends CompletableFuture<T>>> delegate) Constructors in org.aksw.commons.util.ref with parameters of type RefConstructor parameters in org.aksw.commons.util.ref with type arguments of type Ref