Class EagerBufferConfigImpl
- java.lang.Object
-
- org.apache.kafka.streams.kstream.internals.suppress.BufferConfigInternal<Suppressed.EagerBufferConfig>
-
- org.apache.kafka.streams.kstream.internals.suppress.EagerBufferConfigImpl
-
- All Implemented Interfaces:
Suppressed.BufferConfig<Suppressed.EagerBufferConfig>,Suppressed.EagerBufferConfig
public class EagerBufferConfigImpl extends BufferConfigInternal<Suppressed.EagerBufferConfig> implements Suppressed.EagerBufferConfig
-
-
Constructor Summary
Constructors Constructor Description EagerBufferConfigImpl(long maxRecords, long maxBytes)
-
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.EagerBufferConfigwithLoggingDisabled()Disable the changelog for this suppression's internal buffer.Suppressed.EagerBufferConfigwithLoggingEnabled(java.util.Map<java.lang.String,java.lang.String> config)Indicates that a changelog topic should be created containing the currently suppressed records.Suppressed.EagerBufferConfigwithMaxBytes(long byteLimit)Set a size constraint on the buffer, the maximum number of bytes it will use.Suppressed.EagerBufferConfigwithMaxRecords(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
-
-
-
-
Method Detail
-
withMaxRecords
public Suppressed.EagerBufferConfig 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.EagerBufferConfig>
-
withMaxBytes
public Suppressed.EagerBufferConfig 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.EagerBufferConfig>
-
maxRecords
public long maxRecords()
- Specified by:
maxRecordsin classBufferConfigInternal<Suppressed.EagerBufferConfig>
-
maxBytes
public long maxBytes()
- Specified by:
maxBytesin classBufferConfigInternal<Suppressed.EagerBufferConfig>
-
bufferFullStrategy
public BufferFullStrategy bufferFullStrategy()
- Specified by:
bufferFullStrategyin classBufferConfigInternal<Suppressed.EagerBufferConfig>
-
withLoggingDisabled
public Suppressed.EagerBufferConfig 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.EagerBufferConfig>- Returns:
- this
-
withLoggingEnabled
public Suppressed.EagerBufferConfig 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.EagerBufferConfig>- 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.EagerBufferConfig>
-
getLogConfig
public java.util.Map<java.lang.String,java.lang.String> getLogConfig()
- Specified by:
getLogConfigin classBufferConfigInternal<Suppressed.EagerBufferConfig>
-
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
-
-