AbstractRefCounted
, FilteredSearchContext
, InnerHitsContext.InnerHitSubContext
, RecoveryTarget
, SearchContext
, Store
, SubSearchContext
public interface RefCounted
inst.incRef(); try { // use the inst... } finally { inst.decRef(); }
Modifier and Type | Method | Description |
---|---|---|
void |
decRef() |
Decreases the refCount of this instance.
|
void |
incRef() |
Increments the refCount of this instance.
|
boolean |
tryIncRef() |
Tries to increment the refCount of this instance.
|
void incRef()
org.apache.lucene.store.AlreadyClosedException
- iff the reference counter can not be incremented.decRef()
,
tryIncRef()
boolean tryIncRef()
void decRef()
incRef()