Enum Class Kind

java.lang.Object
java.lang.Enum<Kind>
io.micrometer.observation.transport.Kind
All Implemented Interfaces:
Serializable, Comparable<Kind>, Constable

public enum Kind extends Enum<Kind>
Represents side of communication.
Since:
1.10.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Indicates that the operation covers the client-side wrapper around an RPC or other remote request.
    Indicates that the operation describes consumer receiving a message from a broker.
    Indicates that the operation describes producer sending a message to a broker.
    Indicates that the operation covers server-side handling of an RPC or other remote request.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Kind
    Returns the enum constant of this class with the specified name.
    static Kind[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SERVER

      public static final Kind SERVER
      Indicates that the operation covers server-side handling of an RPC or other remote request.
    • CLIENT

      public static final Kind CLIENT
      Indicates that the operation covers the client-side wrapper around an RPC or other remote request.
    • PRODUCER

      public static final Kind PRODUCER
      Indicates that the operation describes producer sending a message to a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer operations.
    • CONSUMER

      public static final Kind CONSUMER
      Indicates that the operation describes consumer receiving a message from a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer operation.
  • Method Details

    • values

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