Uses of Interface
org.aksw.commons.util.ref.Ref
-
Packages that use Ref Package Description org.aksw.commons.util.ref -
-
Uses of Ref in org.aksw.commons.util.ref
Classes in org.aksw.commons.util.ref with type parameters of type Ref Modifier and Type Interface Description interfaceRefDelegate<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.ref Modifier and Type Interface Description interfaceRefDelegate<T,R extends Ref<T>>Interface with default methods that delegate Ref's methodsinterfaceRefFuture<T>In principle a typedef for Ref> Classes in org.aksw.commons.util.ref that implement Ref Modifier and Type Class Description classRefDelegateBase<T,R extends Ref<T>>classRefFutureImpl<T>classRefImpl<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 Ref Modifier and Type Field Description protected Ref<T>LazyRef. backendRefprotected RRefDelegateBase. delegateprotected Ref<T>LazyRef. rootRefFields in org.aksw.commons.util.ref with type parameters of type Ref Modifier and Type Field Description protected java.util.function.Supplier<? extends Ref<T>>LazyRef. backendRefSupplierprotected Map<Ref<T>,Object>RefImpl. childRefsprotected java.util.function.Supplier<? extends Ref<T>>SingletonLazyRef. refSupplierMethods in org.aksw.commons.util.ref that return Ref Modifier and Type Method Description default Ref<T>Ref. acquire()Ref<T>Ref. acquire(Object purpose)Acquire a new reference with a given comment object Acquiration fails if isAlive() returns falsedefault Ref<T>RefDelegate. acquire(Object purpose)Ref<T>RefImpl. acquire(Object comment)default <X> Ref<X>Ref. acquireMapped(java.util.function.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>RefImpl. create2(T value, Object synchronizer, java.util.function.Consumer<? super T> closer)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)Ref<T>LazyRef. get()Ref<T>SingletonLazyRef. get()Every call to .get() returns a fresh reference that must eventually be released!Ref<T>Ref. getRootRef()Get the root referencedefault Ref<T>RefDelegate. getRootRef()Ref<T>RefImpl. getRootRef()Methods in org.aksw.commons.util.ref with parameters of type Ref Modifier and Type Method Description static <T> RefFuture<T>RefFutureImpl. fromRef(Ref<T> ref)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> 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 Ref Modifier and Type Method Description static voidRefFutureImpl. cancelFutureOrCloseRef(CompletableFuture<? extends Ref<?>> future)static <T> LazyRef<T>LazyRef. create(String label, java.util.function.Supplier<? extends Ref<T>> rootRefFactory, long delayInMs)static <T> SingletonLazyRef<T>SingletonLazyRef. create(String id, java.util.function.Supplier<? extends Ref<T>> refSupp)static <T> SingletonLazyRef<T>SingletonLazyRef. create(java.util.function.Supplier<? extends Ref<T>> refSupp)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> 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 Ref Constructor Description RefFutureImpl(Ref<CompletableFuture<T>> delegate)Constructor parameters in org.aksw.commons.util.ref with type arguments of type Ref Constructor Description LazyRef(String label, java.util.function.Supplier<? extends Ref<T>> backendRefSupplier, long closeDelayInMs)SingletonLazyRef(String instanceId, java.util.function.Supplier<? extends Ref<T>> refSupplier)
-