Enum Class Transports

<Transports>
org.elasticsearch.transport.Transports
All Implemented Interfaces:
, <

public enum Transports extends <Transports>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.

    < extends <>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static
    threads whose name is prefixed by this string will be considered network threads, even though they aren't
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
     
    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[]
    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_PREFIX
      threads 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

      public static Transports[] 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

      public static boolean assertDefaultThreadContext(ThreadContext threadContext)