01: package net.jcip.annotations;
02:
03: import java.lang.annotation.Documented;
04: import java.lang.annotation.ElementType;
05: import java.lang.annotation.Retention;
06: import java.lang.annotation.RetentionPolicy;
07: import java.lang.annotation.Target;
08:
09: /**
10: * ThreadSafe
11: *
12: * The class to which this annotation is applied is thread-safe. This means that
13: * no sequences of accesses (reads and writes to public fields, calls to public methods)
14: * may put the object into an invalid state, regardless of the interleaving of those actions
15: * by the runtime, and without requiring any additional synchronization or coordination on the
16: * part of the caller.
17: */
18: @Documented
19: @Target(ElementType.TYPE)
20: @Retention(RetentionPolicy.CLASS)
21: public @interface ThreadSafe {
22: }
|