Record Class CacheWriterIntegration.WriteBehindConfig
java.lang.Object
java.lang.Record
com.loomcache.server.jcache.CacheWriterIntegration.WriteBehindConfig
- Enclosing class:
CacheWriterIntegration<K,V>
public static record CacheWriterIntegration.WriteBehindConfig(int batchSize, long intervalMs, int maxRetries)
extends Record
Configuration for write-behind mode.
-
Constructor Summary
ConstructorsConstructorDescriptionWriteBehindConfig(int batchSize, long intervalMs, int maxRetries) Creates an instance of aWriteBehindConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theintervalMsrecord component.intReturns the value of themaxRetriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WriteBehindConfig
public WriteBehindConfig(int batchSize, long intervalMs, int maxRetries) Creates an instance of aWriteBehindConfigrecord class.- Parameters:
batchSize- the value for thebatchSizerecord componentintervalMs- the value for theintervalMsrecord componentmaxRetries- the value for themaxRetriesrecord component
-
-
Method Details
-
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. All components in this record class 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
-
intervalMs
public long intervalMs()Returns the value of theintervalMsrecord component.- Returns:
- the value of the
intervalMsrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-