Enum Class TransportMode

java.lang.Object
java.lang.Enum<TransportMode>
com.tnsai.protocols.transport.TransportMode
All Implemented Interfaces:
Serializable, Comparable<TransportMode>, Constable

public enum TransportMode extends Enum<TransportMode>
Defines how agents communicate with each other.
  • Enum Constant Details

    • INTERNAL

      public static final TransportMode INTERNAL
      In-memory communication within the same JVM. Fastest, no serialization overhead.
    • HTTP

      public static final TransportMode HTTP
      HTTP/REST based communication across network. Suitable for request/reply patterns.
    • WEBSOCKET

      public static final TransportMode WEBSOCKET
      WebSocket based bidirectional communication.

      Not yet implemented — selecting this mode will throw UnsupportedOperationException at runtime. Use HTTP or INTERNAL instead.

    • AUTO

      public static final TransportMode AUTO
      Framework automatically decides based on configuration. Uses INTERNAL if no endpoint specified, HTTP/WEBSOCKET otherwise.
  • Method Details

    • values

      public static TransportMode[] 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 TransportMode valueOf(String 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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null