Package org.elasticsearch.transport
Enum Class Transports
<Transports>
org.elasticsearch.transport.Transports
- All Implemented Interfaces:
,
<
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.
< extends <>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic
threads whose name is prefixed by this string will be considered network threads, even though they aren't -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
assertDefaultThreadContext(ThreadContext threadContext)
static boolean
reason)
static boolean
static boolean
t)
Utility method to detect whether a thread is a network thread.static Transports
name)
Returns the enum constant of this class with the specified name.static Transports[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from class java.lang.
, , , , ,
-
Field Details
-
TEST_MOCK_TRANSPORT_THREAD_PREFIX
public static final TEST_MOCK_TRANSPORT_THREAD_PREFIXthreads whose name is prefixed by this string will be considered network threads, even though they aren't- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static name)Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
- if this enum class has no constant with the specified name
- if the argument is null
-
isTransportThread
public static boolean isTransportThread( t)Utility method to detect whether a thread is a network thread. Typically used in assertions to make sure that we do not call blocking code from networking threads. -
assertTransportThread
public static boolean assertTransportThread() -
assertNotTransportThread
public static boolean assertNotTransportThread( reason) -
assertDefaultThreadContext
-