Class ExclusionOp

java.lang.Object
org.apache.kafka.clients.admin.ExclusionOp

@Evolving public class ExclusionOp extends Object
A class representing an alter broker exclusion entry containing operation type and reason for exclusion. The API of this class is evolving, see Admin for details.
  • Constructor Details

    • ExclusionOp

      public ExclusionOp(ExclusionOp.OpType operationType)
      Parameters:
      operationType - - the type of exclusion
    • ExclusionOp

      public ExclusionOp(ExclusionOp.OpType operationType, String reason)
      Parameters:
      operationType - - the type of exclusion
      reason - - a string denoting the reason for this exclusion. A valid reason string must be less than 32 characters, can only contain ASCII alphanumerics, `.`, `-`, `_` and cannot be either `.` or `..`
  • Method Details

    • reason

      public String reason()
      Returns:
      a string denoting the reason for this exclusion. A valid reason string must be less than 32 characters, can only contain ASCII alphanumerics, `.`, `-`, `_` and cannot be either `.` or `..`
    • opType

      public ExclusionOp.OpType opType()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object