Registry / utility / microprofile-context-propagation-api

microprofile-context-propagation-api

JSON →
library1.0.2javamavenunverified

API for propagating context (e.g., security, transaction) across threads in MicroProfile applications.

<dependency> <groupId>org.eclipse.microprofile.context-propagation</groupId> <artifactId>microprofile-context-propagation-api</artifactId> <version>1.0.2</version> </dependency>
INSTALL
IMPORT
SIG · MICROPROFILE-CONTE
M
microprofile-context-propagation-api
utilityjavav1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ThreadContext
org.eclipse.microprofile.context.ThreadContext

Create a ThreadContext to propagate context to async operations

import org.eclipse.microprofile.context.ThreadContext; ThreadContext context = ThreadContext.builder() .propagated(ThreadContext.ALL_REMAINING) .build(); context.withContextCapture(CompletableFuture.supplyAsync(() -> "result"));
Debug
Known issues
gotchaVersion 1.0.2 is early; API may change in future MicroProfile releases
fix
Check compatibility with your MicroProfile runtime version
affects: >=1.0.0 <2.0.0
Upgrade
Version history
1.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
5
Bingbot
1
Resources
microprofile-context-propagation-api — mvn dependency:get microprofile-context-propagation-api · libregistry