Package org.apache.gravitino.messaging
Interface Topic
- All Superinterfaces:
Auditable
- All Known Implementing Classes:
TopicDTO
An interface representing a topic under a schema
Namespace. A topic is a message queue
that is managed by Apache Gravitino. Users can create/drop/alter a topic on the Message Queue
system like Apache Kafka, Apache Pulsar, etc.
Topic defines the basic properties of a topic object. A catalog implementation with
TopicCatalog should implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringcomment()name()default SupportsPoliciesdefault SupportsRolesdefault SupportsTags
-
Method Details
-
name
String name()- Returns:
- Name of the topic
-
comment
- Returns:
- The comment of the topic object. Null is returned if no comment is set.
-
properties
- Returns:
- The properties of the topic object. Empty map is returned if no properties are set.
-
supportsTags
- Returns:
- the
SupportsTagsif the topic supports tag operations. - Throws:
UnsupportedOperationException- if the topic does not support tag operations.
-
supportsPolicies
- Returns:
- the
SupportsPoliciesif the topic supports policy operations. - Throws:
UnsupportedOperationException- if the topic does not support policy operations.
-
supportsRoles
- Returns:
- the
SupportsRolesif the topic supports role operations. - Throws:
UnsupportedOperationException- if the topic does not support role operations.
-