Package org.apache.cassandra.cdc.kafka
Interface TopicSupplier
-
- All Known Implementing Classes:
TopicSupplier.MapTopicSupplier,TopicSupplier.PerKeyspace,TopicSupplier.PerKeyspaceTable,TopicSupplier.PerTable,TopicSupplier.StaticTopicSupplier,TopicSupplier.StringFormatTopicSupplier
public interface TopicSupplier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTopicSupplier.MapTopicSupplierstatic classTopicSupplier.PerKeyspacestatic classTopicSupplier.PerKeyspaceTablestatic classTopicSupplier.PerTablestatic classTopicSupplier.StaticTopicSupplierstatic classTopicSupplier.StringFormatTopicSupplier
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TopicSupplier.PerKeyspacekeyspaceSupplier(java.lang.String format)static TopicSupplier.PerKeyspaceTablekeyspaceTableSupplier(java.lang.String format)static TopicSupplier.MapTopicSuppliermapSupplier(java.lang.String format)static TopicSupplier.StaticTopicSupplierstaticTopicSupplier(java.lang.String topic)static TopicSupplier.PerTabletableSupplier(java.lang.String format)java.lang.Stringtopic(org.apache.cassandra.cdc.msg.CdcEvent event)
-
-
-
Method Detail
-
topic
java.lang.String topic(org.apache.cassandra.cdc.msg.CdcEvent event)
-
staticTopicSupplier
static TopicSupplier.StaticTopicSupplier staticTopicSupplier(java.lang.String topic)
- Parameters:
topic- static string for an unchanging topic name- Returns:
- a static topic provider that always returns the same topic name
-
keyspaceSupplier
static TopicSupplier.PerKeyspace keyspaceSupplier(java.lang.String format)
- Parameters:
format- topic string format like "org.apple.ase.%s"- Returns:
- a topic provider that formats a string template to include the keyspace name
-
keyspaceTableSupplier
static TopicSupplier.PerKeyspaceTable keyspaceTableSupplier(java.lang.String format)
- Parameters:
format- topic string format like "org.apple.ase.%s.%s"- Returns:
- a topic provider that formats a string template to include the keyspace and table name
-
tableSupplier
static TopicSupplier.PerTable tableSupplier(java.lang.String format)
- Parameters:
format- topic string format like "org.apple.ase.%s"- Returns:
- a topic provider that formats a string template to include the table name
-
mapSupplier
static TopicSupplier.MapTopicSupplier mapSupplier(java.lang.String format)
-
-