Record Class EventStreamContext
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.gateway.api.EventStreamContext
- Record Components:
project- Project name where the Event Stream exists.path- Path to Event Stream resourcelogger- Logger specific to location in Event Stream. Use of this logger should be preferred to creating a new logger, as it provides additional context about the Event Stream and the location the logger is being used.
public record EventStreamContext(ResourceId resourceId, String stageName, LoggerEx logger)
extends Record
Context specific to an Event Stream
-
Constructor Summary
ConstructorsConstructorDescriptionEventStreamContext(ResourceId resourceId, String stageName, LoggerEx logger) Creates an instance of aEventStreamContextrecord 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.logger()Returns the value of theloggerrecord component.path()project()Returns the value of theresourceIdrecord component.Returns the value of thestageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventStreamContext
Creates an instance of aEventStreamContextrecord class.- Parameters:
resourceId- the value for theresourceIdrecord componentstageName- the value for thestageNamerecord componentlogger- the value for theloggerrecord component
-
-
Method Details
-
project
-
path
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
stageName
Returns the value of thestageNamerecord component.- Returns:
- the value of the
stageNamerecord component
-
logger
Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-