Record Class RedisMessage
java.lang.Object
java.lang.Record
io.micronaut.configuration.lettuce.pubsub.RedisMessage
- Record Components:
body- The raw message bodychannel- The resolved channel namepattern- The subscription pattern if the message was matched by pattern
-
Constructor Summary
ConstructorsConstructorDescriptionRedisMessage(byte[] body, String channel, @Nullable String pattern) Creates an instance of aRedisMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]body()Returns the value of thebodyrecord component.channel()Returns the value of thechannelrecord component.booleanIndicates whether some other object is "equal to" this one.byte[]getBody()inthashCode()Returns a hash code value for this object.@Nullable Stringpattern()Returns the value of thepatternrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
RedisMessage
-
-
Method Details
-
body
-
getBody
public byte[] getBody()- Returns:
- The raw message body
-
getChannel
- Returns:
- The channel name
-
getPattern
-
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). -
hashCode
-
toString
-
channel
-
pattern
-