Enum MethodCardinality

java.lang.Object
java.lang.Enum<MethodCardinality>
io.vertx.grpc.common.MethodCardinality
All Implemented Interfaces:
Serializable, Comparable<MethodCardinality>

public enum MethodCardinality extends Enum<MethodCardinality>
Rpc method cardinality
Author:
Julien Viet
  • Enum Constant Details

    • UNARY

      public static final MethodCardinality UNARY
      Both sides send exactly one message.
    • CLIENT_STREAMING

      public static final MethodCardinality CLIENT_STREAMING
      The client sends any number of messages, the server replies with exactly one message.
    • SERVER_STREAMING

      public static final MethodCardinality SERVER_STREAMING
      The client sends exactly one message, the server replies with any number of messages.
    • BIDI_STREAMING

      public static final MethodCardinality BIDI_STREAMING
      Both sides send any number of messages.
  • Method Details

    • values

      public static MethodCardinality[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MethodCardinality valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null