Record Class CqcSubscriptionHandler.CqcSubscription
java.lang.Object
java.lang.Record
com.loomcache.server.handler.CqcSubscriptionHandler.CqcSubscription
- Enclosing class:
CqcSubscriptionHandler
public static record CqcSubscriptionHandler.CqcSubscription(CqcSubscriptionHandler.SubscriptionId id, SerializablePredicate predicate, DistributedMap.MapChangeListener<String,String> listener, DistributedMap<String,String> sourceMap)
extends Record
Active CQC subscription. Holds the listener so it can be deregistered on unsubscribe
or disconnect.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionCqcSubscription(CqcSubscriptionHandler.SubscriptionId id, SerializablePredicate predicate, DistributedMap.MapChangeListener<String, String> listener, DistributedMap<String, String> sourceMap) Creates an instance of aCqcSubscriptionrecord 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.id()Returns the value of theidrecord component.listener()Returns the value of thelistenerrecord component.Returns the value of thepredicaterecord component.Returns the value of thesourceMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CqcSubscription
public CqcSubscription(CqcSubscriptionHandler.SubscriptionId id, SerializablePredicate predicate, DistributedMap.MapChangeListener<String, String> listener, DistributedMap<String, String> sourceMap) Creates an instance of aCqcSubscriptionrecord class.- Parameters:
id- the value for theidrecord componentpredicate- the value for thepredicaterecord componentlistener- the value for thelistenerrecord componentsourceMap- the value for thesourceMaprecord 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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-
sourceMap
Returns the value of thesourceMaprecord component.- Returns:
- the value of the
sourceMaprecord component
-