Skip to content

io microsphere annotation concurrent ThreadSafe

github-actions[bot] edited this page May 30, 2026 · 1 revision

ThreadSafe

Type: Annotation | Module: microsphere-java-annotations | Package: io.microsphere.annotation.concurrent

Source: microsphere-java-annotations/src/main/java/io/microsphere/annotation/concurrent/ThreadSafe.java

Overview

The class to which this annotation is applied is thread-safe. This means that no sequences of accesses (reads and writes to public fields, calls to public methods) may put the object into an invalid state, regardless of the interleaving of those actions by the runtime, and without requiring any additional synchronization or coordination on the part of the caller.

Declaration

public @interface ThreadSafe

Version Information

  • Introduced in: 0.3.6-SNAPSHOT (current)
  • Current Project Version: 0.3.6-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 8 ✅ Compatible
Java 11 ✅ Compatible
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-java-annotations</artifactId>
    <version>${microsphere-java.version}</version>
</dependency>

Tip: Use the BOM (microsphere-java-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.annotation.concurrent.ThreadSafe;

See Also

  • NotThreadSafe

This documentation was auto-generated from the source code of microsphere-java.

Home

annotation-processor

java-annotations

java-core

java-test

jdk-tools

lang-model

Clone this wiki locally