Top Description Fields Constructors Methods
org.wildfly.common.selector

public final Class ThreadLocalSelector<T>

extends Selector<T>
Class Inheritance
Annotations
@Deprecated
Imports
org.wildfly.common.Assert, org.wildfly.common.context.Contextual

Deprecated

Use Contextual instead.

A thread local selector implementation.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final ThreadLocal<? extends T>

Constructor Summary

AccessConstructor and Description
public
ThreadLocalSelector(final ThreadLocal<? extends T>
the thread-local to use to store the selector's value
threadLocal
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public T
get()

Implements abstract org.wildfly.common.selector.Selector.get.

Get the currently relevant object, or null if there is none.
Inherited from org.wildfly.common.selector.Selector:
getChangePermissionForgetGetPermissionForgetSetPermissionFornullSelectorselectorForselectorGetterActionForselectorGetterForsetSelectorFor

Field Detail

threadLocalback to summary
private final ThreadLocal<? extends T> threadLocal

Constructor Detail

ThreadLocalSelectorback to summary
public ThreadLocalSelector(final ThreadLocal<? extends T> threadLocal)

Construct a new instance.

Parameters
threadLocal:ThreadLocal<? extends T>

the thread-local to use to store the selector's value

Method Detail

getback to summary
public T get()

Implements abstract org.wildfly.common.selector.Selector.get.

Doc from org.wildfly.common.selector.Selector.get.

Get the currently relevant object, or null if there is none.

Returns:T

the currently relevant object