@Experimental @Documented @Retention(value=CLASS) @Target(value=TYPE) public @interface ThreadSafe
ThreadSafe
annotation can be used to indicate a given type
is thread safe. Immutable
objects are automatically thread safe.Immutable
,
NotThreadSafe
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.