Package org.graylog2.outputs
Class BatchSizeConfig
java.lang.Object
org.graylog2.outputs.BatchSizeConfig
This class represents the configuration of a batch size which is measured in bytes but also supports a count based
configuration, e.g. number of messages, for backwards compatibility.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BatchSizeConfigforCount(int count) Create a count based config for backwards compatibility.Optional<com.github.joschi.jadconfig.util.Size>inthashCode()Provides backwards compatibility forExposedConfiguration.static BatchSizeConfigCreate a config by parsing the supplied string as aSize, or anIntegerfor backwards compatibility.
-
Method Details
-
parse
Create a config by parsing the supplied string as aSize, or anIntegerfor backwards compatibility. -
forCount
Create a count based config for backwards compatibility. -
getAsBytes
-
getAsCount
-
jsonValue
Provides backwards compatibility forExposedConfiguration. If the value is a number, keep serializing it as a number. Otherwise, just use the originally configured string. -
equals
-
hashCode
public int hashCode()
-