Class WorkloadConstraints.Builder
java.lang.Object
pl.allegro.tech.hermes.consumers.supervisor.workload.WorkloadConstraints.Builder
- Enclosing class:
- WorkloadConstraints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withActiveConsumers(int activeConsumerCount) withConsumersPerSubscription(int consumersPerSubscription) withMaxSubscriptionsPerConsumer(int maxSubscriptionsPerConsumer) withSubscriptionConstraints(Map<pl.allegro.tech.hermes.api.SubscriptionName, pl.allegro.tech.hermes.api.Constraints> subscriptionConstraints) withTopicConstraints(Map<pl.allegro.tech.hermes.api.TopicName, pl.allegro.tech.hermes.api.Constraints> topicConstraints)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withActiveConsumers
-
withConsumersPerSubscription
-
withMaxSubscriptionsPerConsumer
-
withSubscriptionConstraints
public WorkloadConstraints.Builder withSubscriptionConstraints(Map<pl.allegro.tech.hermes.api.SubscriptionName, pl.allegro.tech.hermes.api.Constraints> subscriptionConstraints) -
withTopicConstraints
public WorkloadConstraints.Builder withTopicConstraints(Map<pl.allegro.tech.hermes.api.TopicName, pl.allegro.tech.hermes.api.Constraints> topicConstraints) -
build
-