Top Description Methods
org.eclipse.microprofile.faulttolerance

public @Interface Bulkhead

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:METHOD, TYPE
@Inherited
@InterceptorBinding
Imports
java.lang.annotation.Documented, .ElementType, .Inherited, .Retention, .RetentionPolicy, .Target, jakarta.enterprise.util.Nonbinding, jakarta.interceptor.InterceptorBinding

Define bulkhead policy to limit the number of the concurrent calls to an instance.

If this is used together with Asynchronous, it means thread isolation. Otherwise, it means semaphore isolation.

Author
Emily Jiang
See Also
value(), waitingTaskQueue()

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the limit of the concurrent calls
value
()

Specify the maximum number of concurrent calls to an instance.

public int

Returns:

the waiting queue size
waitingTaskQueue
()

Specify the waiting task queue.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public int value()

Specify the maximum number of concurrent calls to an instance. The value must be greater than 0. Otherwise, org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionException occurs.

Returns:int

the limit of the concurrent calls

Annotations
@Nonbinding
waitingTaskQueueback to summary
public int waitingTaskQueue()

Specify the waiting task queue. This setting only takes effect on asynchronous invocation, achieved by using Asynchronous. The value must be greater than 0. Otherwise, org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionException occurs.

Returns:int

the waiting queue size

Annotations
@Nonbinding