Record Class WriteBehindCache.WriteBehindConfig
java.lang.Object
java.lang.Record
com.loomcache.client.cache.WriteBehindCache.WriteBehindConfig
- Enclosing class:
WriteBehindCache<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionWriteBehindConfig(int batchSize, Duration flushInterval, int maxPendingWrites) Creates an instance of aWriteBehindConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.defaults()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflushIntervalrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPendingWritesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WriteBehindConfig
Creates an instance of aWriteBehindConfigrecord class.- Parameters:
batchSize- the value for thebatchSizerecord componentflushInterval- the value for theflushIntervalrecord componentmaxPendingWrites- the value for themaxPendingWritesrecord component
-
-
Method Details
-
defaults
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
flushInterval
Returns the value of theflushIntervalrecord component.- Returns:
- the value of the
flushIntervalrecord component
-
maxPendingWrites
public int maxPendingWrites()Returns the value of themaxPendingWritesrecord component.- Returns:
- the value of the
maxPendingWritesrecord component
-