Class ConsumerGroupTopicConfig
- java.lang.Object
-
- org.apache.eventmesh.runtime.core.protocol.grpc.consumer.consumergroup.ConsumerGroupTopicConfig
-
- Direct Known Subclasses:
StreamTopicConfig,WebhookTopicConfig
public abstract class ConsumerGroupTopicConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringconsumerGroupprotected GrpcTypegrpcTypeprotected org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionModesubscriptionModeprotected java.lang.Stringtopic
-
Constructor Summary
Constructors Modifier Constructor Description protectedConsumerGroupTopicConfig(java.lang.String consumerGroup, java.lang.String topic, org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode subscriptionMode, GrpcType grpcType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ConsumerGroupTopicConfigbuildTopicConfig(java.lang.String consumerGroup, java.lang.String topic, org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode subscriptionMode, GrpcType grpcType)abstract voidderegisterClient(ConsumerGroupClient client)java.lang.StringgetConsumerGroup()GrpcTypegetGrpcType()abstract intgetSize()org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionModegetSubscriptionMode()java.lang.StringgetTopic()abstract voidregisterClient(ConsumerGroupClient client)
-
-
-
Field Detail
-
consumerGroup
protected final java.lang.String consumerGroup
-
topic
protected final java.lang.String topic
-
subscriptionMode
protected final org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode subscriptionMode
-
grpcType
protected final GrpcType grpcType
-
-
Constructor Detail
-
ConsumerGroupTopicConfig
protected ConsumerGroupTopicConfig(java.lang.String consumerGroup, java.lang.String topic, org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode subscriptionMode, GrpcType grpcType)
-
-
Method Detail
-
buildTopicConfig
public static ConsumerGroupTopicConfig buildTopicConfig(java.lang.String consumerGroup, java.lang.String topic, org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode subscriptionMode, GrpcType grpcType)
-
registerClient
public abstract void registerClient(ConsumerGroupClient client)
-
deregisterClient
public abstract void deregisterClient(ConsumerGroupClient client)
-
getSize
public abstract int getSize()
-
getConsumerGroup
public java.lang.String getConsumerGroup()
-
getTopic
public java.lang.String getTopic()
-
getSubscriptionMode
public org.apache.eventmesh.common.protocol.grpc.protos.Subscription.SubscriptionItem.SubscriptionMode getSubscriptionMode()
-
getGrpcType
public GrpcType getGrpcType()
-
-