Top Description Interfaces Classes
module io.smallrye.common.ref

Package io.smallrye.common.ref


Classes which implement reference types which can be cleaned up automatically by a background thread. See Reference and its subtypes, and Reaper for more information.

Interface Summary

Modifier and TypeInterface and Description
pack-priv interface
Reapable<
the reference type
T
,
the reference attachment type
A
>

A reference which is reapable (can be automatically collected).

public interface
Reaper<
the reference type
T
,
the reference attachment type
A
>

A cleaner for a dead object.

public interface
Reference<
the reference value type
T
,
the attachment type
A
>

An enhanced reference type with a type-safe attachment.

Class Summary

Modifier and TypeClass and Description
public class
CleanerReference<
the referent type
T
,
the attachment type
A
>

A special version of PhantomReference that is strongly retained until it is reaped by the collection thread.

public class
PhantomReference<
the reference value type
T
,
the attachment type
A
>

A reapable phantom reference with an attachment.

public class
References

A set of utility methods for reference types.

public class
SoftReference<
the reference value type
T
,
the attachment type
A
>

A reapable soft reference with an attachment.

public class
StrongReference<
the reference value type
T
,
the attachment type
A
>

A strong reference with an attachment.

public class
WeakReference<
the reference value type
T
,
the attachment type
A
>

A reapable weak reference with an attachment.