Top Description Fields Constructors Methods
org.apache.http.annotation

public final Enum ThreadingBehavior

extends Enum<ThreadingBehavior>
Class Inheritance

Defines types of threading behavior enforced at runtime.

Field Summary

Modifier and TypeField and Description
public static final ThreadingBehavior
IMMUTABLE

Instances of classes with the given contract are expected to be fully immutable and thread-safe.

public static final ThreadingBehavior
IMMUTABLE_CONDITIONAL

Instances of classes with the given contract are expected to be immutable if their dependencies injected at construction time are immutable and are expected to be thread-safe if their dependencies are thread-safe.

public static final ThreadingBehavior
SAFE

Instances of classes with the given contract are expected to be fully thread-safe.

public static final ThreadingBehavior
SAFE_CONDITIONAL

Instances of classes with the given contract are expected to be thread-safe if their dependencies injected at construction time are thread-safe.

public static final ThreadingBehavior
UNSAFE

Instances of classes with the given contract are expected to be non thread-safe.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ThreadingBehavior
public static ThreadingBehavior[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

IMMUTABLEback to summary
public static final ThreadingBehavior IMMUTABLE

Instances of classes with the given contract are expected to be fully immutable and thread-safe.

IMMUTABLE_CONDITIONALback to summary
public static final ThreadingBehavior IMMUTABLE_CONDITIONAL

Instances of classes with the given contract are expected to be immutable if their dependencies injected at construction time are immutable and are expected to be thread-safe if their dependencies are thread-safe.

SAFEback to summary
public static final ThreadingBehavior SAFE

Instances of classes with the given contract are expected to be fully thread-safe.

SAFE_CONDITIONALback to summary
public static final ThreadingBehavior SAFE_CONDITIONAL

Instances of classes with the given contract are expected to be thread-safe if their dependencies injected at construction time are thread-safe.

UNSAFEback to summary
public static final ThreadingBehavior UNSAFE

Instances of classes with the given contract are expected to be non thread-safe.

Constructor Detail

ThreadingBehaviorback to summary
private ThreadingBehavior()

Method Detail

valueOfback to summary
public static ThreadingBehavior valueOf(String name)
valuesback to summary
public static ThreadingBehavior[] values()