Package io.atomix.utils.concurrent
Interface ReferenceManager<T>
-
- All Known Implementing Classes:
ReferencePool
public interface ReferenceManager<T>Reference manager. ManagesReferenceCountedobjects.- Author:
- Jordan Halterman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrelease(T reference)Releases the given reference.
-
-
-
Method Detail
-
release
void release(T reference)
Releases the given reference.This method should be called with a
ReferenceCountedobject that contains no additional references. This allows, for instance, pools to recycle dereferenced objects.- Parameters:
reference- The reference to release.
-
-