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 aEventStreamContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.logger()
Returns the value of thelogger
record component.path()
project()
Returns the value of theresourceId
record component.Returns the value of thestageName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EventStreamContext
Creates an instance of aEventStreamContext
record class.- Parameters:
resourceId
- the value for theresourceId
record componentstageName
- the value for thestageName
record componentlogger
- the value for thelogger
record 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 theresourceId
record component.- Returns:
- the value of the
resourceId
record component
-
stageName
Returns the value of thestageName
record component.- Returns:
- the value of the
stageName
record component
-
logger
Returns the value of thelogger
record component.- Returns:
- the value of the
logger
record component
-