Record Class StageContext
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.gateway.stages.StageContext
public record StageContext(ResourceId resourceId, String name, Executor executor, GatewayEventStreamExpressionFactory expressionFactory, com.codahale.metrics.MetricRegistry metrics, LoggerEx logger, boolean testMode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStageContext
(ResourceId resourceId, String name, Executor executor, GatewayEventStreamExpressionFactory expressionFactory, com.codahale.metrics.MetricRegistry metrics, LoggerEx logger, boolean testMode) Creates an instance of aStageContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.executor()
Returns the value of theexecutor
record component.Returns the value of theexpressionFactory
record component.final int
hashCode()
Returns a hash code value for this object.key()
logger()
Returns the value of thelogger
record component.com.codahale.metrics.MetricRegistry
metrics()
Returns the value of themetrics
record component.name()
Returns the value of thename
record component.Returns the value of theresourceId
record component.boolean
testMode()
Returns the value of thetestMode
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StageContext
public StageContext(ResourceId resourceId, String name, Executor executor, GatewayEventStreamExpressionFactory expressionFactory, com.codahale.metrics.MetricRegistry metrics, LoggerEx logger, boolean testMode) Creates an instance of aStageContext
record class.- Parameters:
resourceId
- the value for theresourceId
record componentname
- the value for thename
record componentexecutor
- the value for theexecutor
record componentexpressionFactory
- the value for theexpressionFactory
record componentmetrics
- the value for themetrics
record componentlogger
- the value for thelogger
record componenttestMode
- the value for thetestMode
record component
-
-
Method Details
-
key
-
nest
-
eventStreamContext
-
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 '=='. -
resourceId
Returns the value of theresourceId
record component.- Returns:
- the value of the
resourceId
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
executor
Returns the value of theexecutor
record component.- Returns:
- the value of the
executor
record component
-
expressionFactory
Returns the value of theexpressionFactory
record component.- Returns:
- the value of the
expressionFactory
record component
-
metrics
public com.codahale.metrics.MetricRegistry metrics()Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-
logger
Returns the value of thelogger
record component.- Returns:
- the value of the
logger
record component
-
testMode
public boolean testMode()Returns the value of thetestMode
record component.- Returns:
- the value of the
testMode
record component
-