Class TopicProperties
- java.lang.Object
-
- pl.allegro.tech.hermes.management.config.TopicProperties
-
@ConfigurationProperties(prefix="topic") public class TopicProperties extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TopicProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<pl.allegro.tech.hermes.api.ContentType>getAllowedContentTypes()java.util.Set<pl.allegro.tech.hermes.api.TopicLabel>getAllowedTopicLabels()intgetMaxMessageSize()intgetPartitions()intgetReplicationFactor()intgetSubscriptionsAssignmentsCompletedTimeoutSeconds()intgetTouchDelayInSeconds()booleanisAllowRemoval()booleanisAvroContentTypeMetadataRequired()booleanisDefaultSchemaIdAwareSerializationEnabled()booleanisRemoveSchema()booleanisTouchSchedulerEnabled()booleanisUncleanLeaderElectionEnabled()voidsetAllowedContentTypes(java.util.List<pl.allegro.tech.hermes.api.ContentType> allowedContentTypes)voidsetAllowedTopicLabels(java.util.Set<pl.allegro.tech.hermes.api.TopicLabel> allowedTopicLabels)voidsetAllowRemoval(boolean allowRemoval)voidsetAvroContentTypeMetadataRequired(boolean avroContentTypeMetadataRequired)voidsetDefaultSchemaIdAwareSerializationEnabled(boolean defaultSchemaIdAwareSerializationEnabled)voidsetMaxMessageSize(int maxMessageSize)voidsetPartitions(int partitions)voidsetRemoveSchema(boolean removeSchema)voidsetReplicationFactor(int replicationFactor)voidsetSubscriptionsAssignmentsCompletedTimeoutSeconds(int subscriptionsAssignmentsCompletedTimeoutSeconds)voidsetTouchDelayInSeconds(int touchDelayInSeconds)voidsetTouchSchedulerEnabled(boolean touchSchedulerEnabled)voidsetUncleanLeaderElectionEnabled(boolean uncleanLeaderElectionEnabled)
-
-
-
Method Detail
-
getReplicationFactor
public int getReplicationFactor()
-
setReplicationFactor
public void setReplicationFactor(int replicationFactor)
-
getPartitions
public int getPartitions()
-
setPartitions
public void setPartitions(int partitions)
-
isAllowRemoval
public boolean isAllowRemoval()
-
setAllowRemoval
public void setAllowRemoval(boolean allowRemoval)
-
isRemoveSchema
public boolean isRemoveSchema()
-
setRemoveSchema
public void setRemoveSchema(boolean removeSchema)
-
getAllowedContentTypes
public java.util.List<pl.allegro.tech.hermes.api.ContentType> getAllowedContentTypes()
-
setAllowedContentTypes
public void setAllowedContentTypes(java.util.List<pl.allegro.tech.hermes.api.ContentType> allowedContentTypes)
-
getAllowedTopicLabels
public java.util.Set<pl.allegro.tech.hermes.api.TopicLabel> getAllowedTopicLabels()
-
setAllowedTopicLabels
public void setAllowedTopicLabels(java.util.Set<pl.allegro.tech.hermes.api.TopicLabel> allowedTopicLabels)
-
isUncleanLeaderElectionEnabled
public boolean isUncleanLeaderElectionEnabled()
-
setUncleanLeaderElectionEnabled
public void setUncleanLeaderElectionEnabled(boolean uncleanLeaderElectionEnabled)
-
getTouchDelayInSeconds
public int getTouchDelayInSeconds()
-
setTouchDelayInSeconds
public void setTouchDelayInSeconds(int touchDelayInSeconds)
-
isTouchSchedulerEnabled
public boolean isTouchSchedulerEnabled()
-
setTouchSchedulerEnabled
public void setTouchSchedulerEnabled(boolean touchSchedulerEnabled)
-
getSubscriptionsAssignmentsCompletedTimeoutSeconds
public int getSubscriptionsAssignmentsCompletedTimeoutSeconds()
-
setSubscriptionsAssignmentsCompletedTimeoutSeconds
public void setSubscriptionsAssignmentsCompletedTimeoutSeconds(int subscriptionsAssignmentsCompletedTimeoutSeconds)
-
getMaxMessageSize
public int getMaxMessageSize()
-
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize)
-
setDefaultSchemaIdAwareSerializationEnabled
public void setDefaultSchemaIdAwareSerializationEnabled(boolean defaultSchemaIdAwareSerializationEnabled)
-
isDefaultSchemaIdAwareSerializationEnabled
public boolean isDefaultSchemaIdAwareSerializationEnabled()
-
isAvroContentTypeMetadataRequired
public boolean isAvroContentTypeMetadataRequired()
-
setAvroContentTypeMetadataRequired
public void setAvroContentTypeMetadataRequired(boolean avroContentTypeMetadataRequired)
-
-