Record Class EventStreamEventBus.Payload
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.gateway.eventbus.EventStreamEventBus.Payload
- Record Components:
project
- Name of projectEventStream
resource exists inpath
- Path toEventStream
resourcedata
- 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 destinationEventStreamSource
serverId
- Name of destination gateway, null if sending locally.
- Enclosing class:
- EventStreamEventBus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
ack()
Returns the value of theack
record component.data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.project()
Returns the value of theproject
record component.serverId()
Returns the value of theserverId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Payload
Creates an instance of aPayload
record 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 theproject
record component.- Returns:
- the value of the
project
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
ack
public boolean ack()Returns the value of theack
record component.- Returns:
- the value of the
ack
record component
-
serverId
Returns the value of theserverId
record component.- Returns:
- the value of the
serverId
record component
-