public interface MaybeThreadSafe
Interface for objects that can report at runtime whether they are thread-safe. Classes that are known always to be thread-safe should carry the Immutable
or ThreadSafe
annotation; this is primarily intended for wrapper classes whose thread safety depends on the thread safety of their delegates.
Modifier and Type | Method and Description |
---|---|
boolean |
isThreadSafe()
Query whether this object is thread-safe.
|