Record Class EventStreamEventBus.Payload
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.gateway.eventbus.EventStreamEventBus.Payload
- Record Components:
project- Name of projectEventStreamresource exists inpath- Path toEventStreamresourcedata- Object to send toEventStream. MUST be serializable, since it's possible to send through GANack- True, block response until the Payload is handled by theEventStreamHandler. False, response will complete once Payload makes it to destinationEventStreamSourceserverId- Name of destination gateway, null if sending locally.
- Enclosing class:
- EventStreamEventBus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanack()Returns the value of theackrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.project()Returns the value of theprojectrecord component.serverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Payload
Creates an instance of aPayloadrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
ack
public boolean ack()Returns the value of theackrecord component.- Returns:
- the value of the
ackrecord component
-
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-