public class TopicService extends Object
| Constructor and Description |
|---|
TopicService() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartitionCount(Class<? extends EventStoreEvent> eventClass)
Provides how many partitions does topic for given event have.
|
int |
getPartitionCount(String topicName)
Provides how many partitions does given topic.
|
String |
getTopicName(Class<? extends EventStoreEvent> eventClass)
Provides topic name for given
EventStoreEvent. |
public String getTopicName(Class<? extends EventStoreEvent> eventClass)
EventStoreEvent.eventClass - event for which the topic name is requestedpublic int getPartitionCount(Class<? extends EventStoreEvent> eventClass)
eventClass - class of the eventpublic int getPartitionCount(String topicName)
topicName - name of the topicCopyright © 2019. All rights reserved.