public class TopicImpl extends JsonSettingsMapImpl implements ITopic
IApplication
implementationAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
originatorName
Constructor and Description |
---|
TopicImpl(IEntity entity,
Map<String,Object> map,
String name) |
TopicImpl(String cluster,
String topic,
Integer partition,
Integer replicationFactor,
String retentionBytes,
String deleteRetention,
String cleanupPolicy) |
Modifier and Type | Method and Description |
---|---|
Object |
getAsRequiredObjectOfClass(String key,
Class<? extends Object> expectedClass) |
IEntity |
getChannel() |
Map<String,String> |
getConfigs()
This return, if defined, the "delete.retention.ms", "retention.bytes" and "cleanup.policy"
|
String |
getKafkaCluster() |
String |
getName() |
int |
getPartitionNumber() |
int |
getReplicationFactor() |
newSettingsListChild, newSettingsMapChild, put, putAll, putWithNoCloning, setOriginatorName
asFlatValuesMap, asFlatValuesMap, asFlatValuesMapIgnoreSettingsList, asHjsonString, asJsonString, asJsonString, asKvString, asListFlatValuesMapIgnoreSettingsList, asYamlString, childAsJson, childAsRawContent, childAsTarGz, childFileAsMap, childIsDir, childIsFile, getAsBoolean, getAsBoolean, getAsDouble, getAsInteger, getAsInteger, getAsIsoDateTime, getAsLong, getAsLong, getAsMsDuration, getAsRequiredBoolean, getAsRequiredDouble, getAsRequiredInteger, getAsRequiredIsoDateTime, getAsRequiredLong, getAsRequiredObject, getAsRequiredSettingsList, getAsRequiredSettingsMap, getAsRequiredString, getAsRequiredTimeValue, getAsRequiredZonedDateTime, getAsSettingsList, getAsSettingsList, getAsSettingsListOrEmpty, getAsSettingsMap, getAsSettingsMap, getAsString, getAsString, getAsTimeValue, getChildName, getCreateMap, getDeepCopy, getMapOrEmpty, getNestedProperty, getNewInstance, getOrCreateNestedSettingsMap, getOriginatorName, getRequiredNestedProperty, getStringOrFail, getStringOrFail, getTimeValueMs, newSettingsMapChild, overrideWith, putUsingDottedPath, putUsingSlashPath, removeUsingDottedPath, removeUsingSlashPath, setJsonDecoding, setNestedProperty, setPropertyIfMissing
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
asFlatValuesMap, asFlatValuesMap, asFlatValuesMapIgnoreSettingsList, asHjsonString, asJsonString, asJsonString, asKvString, asListFlatValuesMapIgnoreSettingsList, asYamlString, childAsJson, childAsListOfString, childAsMapEntries, childAsMapValues, childAsRawContent, childAsRequiredListOfString, childAsRequiredString, childAsString, childAsStringContent, childAsTarGz, childFileAsMap, childIsDir, childIsFile, getAsBoolean, getAsBoolean, getAsDouble, getAsInteger, getAsInteger, getAsIsoDateTime, getAsLong, getAsLong, getAsMsDuration, getAsRequiredBoolean, getAsRequiredDouble, getAsRequiredInteger, getAsRequiredIsoDateTime, getAsRequiredLong, getAsRequiredObject, getAsRequiredSettingsList, getAsRequiredSettingsMap, getAsRequiredString, getAsRequiredTimeValue, getAsRequiredZonedDateTime, getAsSettingsList, getAsSettingsList, getAsSettingsListOrEmpty, getAsSettingsMap, getAsSettingsMap, getAsString, getAsString, getAsTimeValue, getCreateAsListOfMap, getCreateMap, getDeepCopy, getMapOrEmpty, getNestedProperty, getOrCreateNestedSettingsMap, getOriginatorName, getRequiredNestedProperty, getStringOrFail, getStringOrFail, getTimeValueMs, overrideWith, putUsingDottedPath, putUsingSlashPath, removeUsingDottedPath, removeUsingSlashPath, setNestedProperty, setOriginatorName, setPropertyIfMissing
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public TopicImpl(IEntity entity, Map<String,Object> map, String name)
entity
- channelmap
- mapname
- namepublic IEntity getChannel()
getChannel
in interface ITopic
public String getName()
public String getKafkaCluster() throws ConfigurationException
getKafkaCluster
in interface ITopic
ConfigurationException
public int getPartitionNumber()
getPartitionNumber
in interface ITopic
public int getReplicationFactor()
getReplicationFactor
in interface ITopic
public Map<String,String> getConfigs()
ITopic
getConfigs
in interface ITopic
public Object getAsRequiredObjectOfClass(String key, Class<? extends Object> expectedClass)
getAsRequiredObjectOfClass
in interface ISettingsMap
getAsRequiredObjectOfClass
in class SettingsMapImpl
key
- the property key to retrieveexpectedClass
- the class of which the property must be checked an instance ofCopyright © 2014–2023. All rights reserved.