Package dev.agenor.core
Record Class AgenorConfiguration.SchedulerConfig
java.lang.Object
java.lang.Record
dev.agenor.core.AgenorConfiguration.SchedulerConfig
- Record Components:
provider- scheduler implementation identifier (e.g.simple); defaultsimplethreadPoolSize- thread pool size for behavior execution; default10properties- provider-specific configuration key/value pairs
- Enclosing class:
AgenorConfiguration
public static record AgenorConfiguration.SchedulerConfig(String provider, int threadPoolSize, Map<String,String> properties)
extends Record
Behavior scheduler configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulerConfig(String provider, int threadPoolSize, Map<String, String> properties) Creates an instance of aSchedulerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.provider()Returns the value of theproviderrecord component.intReturns the value of thethreadPoolSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchedulerConfig
Creates an instance of aSchedulerConfigrecord class.- Parameters:
provider- the value for theproviderrecord componentthreadPoolSize- the value for thethreadPoolSizerecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
defaults
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
threadPoolSize
public int threadPoolSize()Returns the value of thethreadPoolSizerecord component.- Returns:
- the value of the
threadPoolSizerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-