Class StrictBufferConfigImpl
- java.lang.Object
-
- org.apache.kafka.streams.kstream.internals.suppress.BufferConfigInternal<Suppressed.StrictBufferConfig>
-
- org.apache.kafka.streams.kstream.internals.suppress.StrictBufferConfigImpl
-
- All Implemented Interfaces:
Suppressed.BufferConfig<Suppressed.StrictBufferConfig>,Suppressed.StrictBufferConfig
public class StrictBufferConfigImpl extends BufferConfigInternal<Suppressed.StrictBufferConfig> implements Suppressed.StrictBufferConfig
-
-
Constructor Summary
Constructors Constructor Description StrictBufferConfigImpl()StrictBufferConfigImpl(long maxRecords, long maxBytes, BufferFullStrategy bufferFullStrategy)StrictBufferConfigImpl(long maxRecords, long maxBytes, BufferFullStrategy bufferFullStrategy, java.util.Map<java.lang.String,java.lang.String> logConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferFullStrategybufferFullStrategy()booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.String>getLogConfig()inthashCode()booleanisLoggingEnabled()longmaxBytes()longmaxRecords()java.lang.StringtoString()Suppressed.StrictBufferConfigwithLoggingDisabled()Disable the changelog for this suppression's internal buffer.Suppressed.StrictBufferConfigwithLoggingEnabled(java.util.Map<java.lang.String,java.lang.String> config)Indicates that a changelog topic should be created containing the currently suppressed records.Suppressed.StrictBufferConfigwithMaxBytes(long byteLimit)Set a size constraint on the buffer, the maximum number of bytes it will use.Suppressed.StrictBufferConfigwithMaxRecords(long recordLimit)Set a size constraint on the buffer in terms of the maximum number of keys it will store.-
Methods inherited from class org.apache.kafka.streams.kstream.internals.suppress.BufferConfigInternal
emitEarlyWhenFull, shutDownWhenFull, withNoBound
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.kafka.streams.kstream.Suppressed.BufferConfig
emitEarlyWhenFull, shutDownWhenFull, withNoBound
-
-
-
-
Constructor Detail
-
StrictBufferConfigImpl
public StrictBufferConfigImpl(long maxRecords, long maxBytes, BufferFullStrategy bufferFullStrategy, java.util.Map<java.lang.String,java.lang.String> logConfig)
-
StrictBufferConfigImpl
public StrictBufferConfigImpl(long maxRecords, long maxBytes, BufferFullStrategy bufferFullStrategy)
-
StrictBufferConfigImpl
public StrictBufferConfigImpl()
-
-
Method Detail
-
withMaxRecords
public Suppressed.StrictBufferConfig withMaxRecords(long recordLimit)
Description copied from interface:Suppressed.BufferConfigSet a size constraint on the buffer in terms of the maximum number of keys it will store.- Specified by:
withMaxRecordsin interfaceSuppressed.BufferConfig<Suppressed.StrictBufferConfig>
-
withMaxBytes
public Suppressed.StrictBufferConfig withMaxBytes(long byteLimit)
Description copied from interface:Suppressed.BufferConfigSet a size constraint on the buffer, the maximum number of bytes it will use.- Specified by:
withMaxBytesin interfaceSuppressed.BufferConfig<Suppressed.StrictBufferConfig>
-
maxRecords
public long maxRecords()
- Specified by:
maxRecordsin classBufferConfigInternal<Suppressed.StrictBufferConfig>
-
maxBytes
public long maxBytes()
- Specified by:
maxBytesin classBufferConfigInternal<Suppressed.StrictBufferConfig>
-
bufferFullStrategy
public BufferFullStrategy bufferFullStrategy()
- Specified by:
bufferFullStrategyin classBufferConfigInternal<Suppressed.StrictBufferConfig>
-
withLoggingDisabled
public Suppressed.StrictBufferConfig withLoggingDisabled()
Description copied from interface:Suppressed.BufferConfigDisable the changelog for this suppression's internal buffer. This will turn off fault-tolerance for the suppression, and will result in data loss in the event of a rebalance. By default the changelog is enabled.- Specified by:
withLoggingDisabledin interfaceSuppressed.BufferConfig<Suppressed.StrictBufferConfig>- Returns:
- this
-
withLoggingEnabled
public Suppressed.StrictBufferConfig withLoggingEnabled(java.util.Map<java.lang.String,java.lang.String> config)
Description copied from interface:Suppressed.BufferConfigIndicates that a changelog topic should be created containing the currently suppressed records. Due to the short-lived nature of records in this topic it is likely more compactable than changelog topics for KTables.- Specified by:
withLoggingEnabledin interfaceSuppressed.BufferConfig<Suppressed.StrictBufferConfig>- Parameters:
config- Configs that should be applied to the changelog. Note: Any unrecognized configs will be ignored.- Returns:
- this
-
isLoggingEnabled
public boolean isLoggingEnabled()
- Specified by:
isLoggingEnabledin classBufferConfigInternal<Suppressed.StrictBufferConfig>
-
getLogConfig
public java.util.Map<java.lang.String,java.lang.String> getLogConfig()
- Specified by:
getLogConfigin classBufferConfigInternal<Suppressed.StrictBufferConfig>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-