Class TopicDTO

java.lang.Object
org.apache.gravitino.dto.messaging.TopicDTO
All Implemented Interfaces:
Auditable, Topic

public class TopicDTO extends Object implements Topic
Represents a topic DTO (Data Transfer Object).
  • Method Details

    • builder

      public static TopicDTO.Builder builder()
      Returns:
      a new builder for constructing a Topic DTO.
    • name

      public String name()
      Specified by:
      name in interface Topic
      Returns:
      Name of the topic
    • comment

      @Nullable public String comment()
      Specified by:
      comment in interface Topic
      Returns:
      The comment of the topic object. Null is returned if no comment is set.
    • properties

      public Map<String,String> properties()
      Specified by:
      properties in interface Topic
      Returns:
      The properties of the topic object. Empty map is returned if no properties are set.
    • auditInfo

      public Audit auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the entity.
    • 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