Record Class PushChannelProps.Action
java.lang.Object
java.lang.Record
com.iizix.prop.push.PushChannelProps.Action
- Record Components:
id- The action id, from the channel's counter.path- The component's atom path from the root, joined with/.topic- The Topic the click subscribes.listener- The listener of each click's outcome, called on the connection's thread.
- Enclosing class:
PushChannelProps
public static record PushChannelProps.Action(int id, String path, String topic, PushChannelProps.IReplyListener listener) extends Record
A configured subscribe action (P4-09, design 8.2): the entry
PushChannelProps.setAction(String, String, PushChannelProps.IReplyListener) wrote into PushChannelProps.ACT, and the listener of each click's outcome.- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionAction(int id, String path, String topic, PushChannelProps.IReplyListener listener) Creates an instance of aActionrecord 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.intid()Returns the value of theidrecord component.listener()Returns the value of thelistenerrecord component.path()Returns the value of thepathrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.id
path
topic
listener