public class KafkaSourceModuleOptionsMetadata extends java.lang.Object implements ProfileNamesProvider
Modifier and Type | Class and Description |
---|---|
static class |
KafkaSourceModuleOptionsMetadata.OffsetStorageStrategy |
NO_PROFILES
Constructor and Description |
---|
KafkaSourceModuleOptionsMetadata() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding() |
java.lang.String |
getGroupId() |
java.lang.String |
getInitialOffsets() |
KafkaSourceModuleOptionsMetadata.OffsetStorageStrategy |
getOffsetStorage() |
int |
getOffsetUpdateCount() |
int |
getOffsetUpdateShutdownTimeout() |
int |
getOffsetUpdateTimeWindow() |
java.lang.String |
getPartitions() |
int |
getQueueSize() |
int |
getStreams() |
java.lang.String |
getTopic() |
java.lang.String |
getTopics() |
boolean |
isInitialOffsetsValid() |
boolean |
isPartitionsOptionValid() |
boolean |
isTopicOptionValid() |
java.lang.String[] |
profilesToActivate() |
void |
setEncoding(java.lang.String encoding) |
void |
setGroupId(java.lang.String groupId) |
void |
setInitialOffsets(java.lang.String initialOffsets) |
void |
setOffsetStorage(KafkaSourceModuleOptionsMetadata.OffsetStorageStrategy offsetStorage) |
void |
setOffsetUpdateCount(int offsetUpdateCount) |
void |
setOffsetUpdateShutdownTimeout(int offsetUpdateShutdownTimeout) |
void |
setOffsetUpdateTimeWindow(int offsetUpdateTimeWindow) |
void |
setPartitions(java.lang.String partitions) |
void |
setQueueSize(int queueSize) |
void |
setStreams(int streams) |
void |
setTopic(java.lang.String topic) |
void |
setTopics(java.lang.String topics) |
public void setTopic(java.lang.String topic)
public java.lang.String getTopic()
public void setTopics(java.lang.String topics)
public java.lang.String getTopics()
public java.lang.String getPartitions()
public void setPartitions(java.lang.String partitions)
public java.lang.String getInitialOffsets()
public void setInitialOffsets(java.lang.String initialOffsets)
public KafkaSourceModuleOptionsMetadata.OffsetStorageStrategy getOffsetStorage()
public void setOffsetStorage(KafkaSourceModuleOptionsMetadata.OffsetStorageStrategy offsetStorage)
public void setStreams(int streams)
public int getStreams()
public void setGroupId(java.lang.String groupId)
public java.lang.String getGroupId()
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public void setOffsetUpdateTimeWindow(int offsetUpdateTimeWindow)
public int getOffsetUpdateTimeWindow()
public void setOffsetUpdateCount(int offsetUpdateCount)
public int getOffsetUpdateCount()
public void setOffsetUpdateShutdownTimeout(int offsetUpdateShutdownTimeout)
public int getOffsetUpdateShutdownTimeout()
public void setQueueSize(int queueSize)
public int getQueueSize()
@AssertTrue(message="the options topic and topics are mutually exclusive") public boolean isTopicOptionValid()
@AssertTrue(message="explicit partitions can only be set when using single topic source") public boolean isPartitionsOptionValid()
@AssertTrue(message="initial offsets can only be set when using single topic source") public boolean isInitialOffsetsValid()
public java.lang.String[] profilesToActivate()
profilesToActivate
in interface ProfileNamesProvider