Package dev.agenor.autoconfigure
Record Class AgenorProperties.Messaging
java.lang.Object
java.lang.Record
dev.agenor.autoconfigure.AgenorProperties.Messaging
- Record Components:
provider- messaging provider implementation:inmemory(default) orredisredis- Redis Streams configuration; only read whenprovider=redis
- Enclosing class:
AgenorProperties
public static record AgenorProperties.Messaging(String provider, AgenorProperties.Messaging.Redis redis)
extends Record
Messaging
Redis provider example:
agenor:
messaging:
provider: redis
redis:
uri: redis://localhost:6379
consumer-group-prefix: agenor
read-block-timeout-ms: 2000
max-stream-length: 100000
pending-entries-timeout-ms: 30000
max-delivery-attempts: 3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRedis Streams configuration. -
Constructor Summary
ConstructorsConstructorDescriptionMessaging(String provider, AgenorProperties.Messaging.Redis redis) Creates an instance of aMessagingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.provider()Returns the value of theproviderrecord component.redis()Returns the value of theredisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
redis
Returns the value of theredisrecord component.- Returns:
- the value of the
redisrecord component
-