public class TopicBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
pl.allegro.tech.hermes.api.Topic |
build() |
TopicBuilder |
migratedFromJsonType() |
static TopicBuilder |
randomTopic(java.lang.String group,
java.lang.String topicNamePrefix) |
static TopicBuilder |
topic(java.lang.String qualifiedName) |
static TopicBuilder |
topic(java.lang.String groupName,
java.lang.String topicName) |
static TopicBuilder |
topic(pl.allegro.tech.hermes.api.TopicName topicName) |
TopicBuilder |
withAck(pl.allegro.tech.hermes.api.Topic.Ack ack) |
TopicBuilder |
withAuthEnabled() |
TopicBuilder |
withContentType(pl.allegro.tech.hermes.api.ContentType contentType) |
TopicBuilder |
withDescription(java.lang.String description) |
TopicBuilder |
withJsonToAvroDryRun(boolean enabled) |
TopicBuilder |
withLabels(java.util.Set<pl.allegro.tech.hermes.api.TopicLabel> labels) |
TopicBuilder |
withMaxMessageSize(int size) |
TopicBuilder |
withOfflineStorage(int days) |
TopicBuilder |
withOwner(pl.allegro.tech.hermes.api.OwnerId owner) |
TopicBuilder |
withPublisher(java.lang.String serviceName) |
TopicBuilder |
withRetentionTime(int retentionTime,
java.util.concurrent.TimeUnit unit) |
TopicBuilder |
withRetentionTime(pl.allegro.tech.hermes.api.RetentionTime retentionTime) |
TopicBuilder |
withSchemaIdAwareSerialization() |
TopicBuilder |
withSubscribingRestricted() |
TopicBuilder |
withTrackingEnabled(boolean enabled) |
TopicBuilder |
withUnauthenticatedAccessDisabled() |
public static TopicBuilder randomTopic(java.lang.String group, java.lang.String topicNamePrefix)
public static TopicBuilder topic(pl.allegro.tech.hermes.api.TopicName topicName)
public static TopicBuilder topic(java.lang.String groupName, java.lang.String topicName)
public static TopicBuilder topic(java.lang.String qualifiedName)
public pl.allegro.tech.hermes.api.Topic build()
public TopicBuilder withDescription(java.lang.String description)
public TopicBuilder withOwner(pl.allegro.tech.hermes.api.OwnerId owner)
public TopicBuilder withRetentionTime(pl.allegro.tech.hermes.api.RetentionTime retentionTime)
public TopicBuilder withRetentionTime(int retentionTime, java.util.concurrent.TimeUnit unit)
public TopicBuilder withJsonToAvroDryRun(boolean enabled)
public TopicBuilder withAck(pl.allegro.tech.hermes.api.Topic.Ack ack)
public TopicBuilder withTrackingEnabled(boolean enabled)
public TopicBuilder withContentType(pl.allegro.tech.hermes.api.ContentType contentType)
public TopicBuilder migratedFromJsonType()
public TopicBuilder withSchemaIdAwareSerialization()
public TopicBuilder withSubscribingRestricted()
public TopicBuilder withMaxMessageSize(int size)
public TopicBuilder withPublisher(java.lang.String serviceName)
public TopicBuilder withAuthEnabled()
public TopicBuilder withUnauthenticatedAccessDisabled()
public TopicBuilder withOfflineStorage(int days)
public TopicBuilder withLabels(java.util.Set<pl.allegro.tech.hermes.api.TopicLabel> labels)