Record Class DistributedTracingSettings
java.lang.Object
java.lang.Record
io.axoniq.framework.messaging.distributed.tracing.DistributedTracingSettings
- Record Components:
commandBusConnectorEnabled- whether theCommandBusConnectoris decorated with tracingqueryBusConnectorEnabled- whether theQueryBusConnectoris decorated with tracing
public record DistributedTracingSettings(boolean commandBusConnectorEnabled, boolean queryBusConnectorEnabled)
extends Record
Settings controlling tracing for distributed messaging connectors.
Register these settings as a configuration component to enable or disable tracing for individual connector types. When no settings are registered, tracing is enabled for every distributed connector.
- Since:
- 5.3.0
- Author:
- Mateusz Nowak
-
Constructor Summary
ConstructorsConstructorDescriptionDistributedTracingSettings(boolean commandBusConnectorEnabled, boolean queryBusConnectorEnabled) Creates an instance of aDistributedTracingSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecommandBusConnectorEnabledrecord component.static DistributedTracingSettingsReturns the default settings, with every distributed connector enabled for tracing.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thequeryBusConnectorEnabledrecord component.final StringtoString()Returns a string representation of this record class.withCommandBusConnectorEnabled(boolean enabled) Returns settings with command bus connector tracing set toenabled.withQueryBusConnectorEnabled(boolean enabled) Returns settings with query bus connector tracing set toenabled.
-
Constructor Details
-
DistributedTracingSettings
public DistributedTracingSettings(boolean commandBusConnectorEnabled, boolean queryBusConnectorEnabled) Creates an instance of aDistributedTracingSettingsrecord class.- Parameters:
commandBusConnectorEnabled- the value for thecommandBusConnectorEnabledrecord componentqueryBusConnectorEnabled- the value for thequeryBusConnectorEnabledrecord component
-
-
Method Details
-
enabledByDefault
Returns the default settings, with every distributed connector enabled for tracing.- Returns:
- the all-enabled default settings
-
withCommandBusConnectorEnabled
Returns settings with command bus connector tracing set toenabled.- Parameters:
enabled- whether command bus connector tracing is enabled- Returns:
- settings with the updated command bus connector tracing value
-
withQueryBusConnectorEnabled
Returns settings with query bus connector tracing set toenabled.- Parameters:
enabled- whether query bus connector tracing is enabled- Returns:
- settings with the updated query bus connector tracing value
-
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 with '=='. -
commandBusConnectorEnabled
public boolean commandBusConnectorEnabled()Returns the value of thecommandBusConnectorEnabledrecord component.- Returns:
- the value of the
commandBusConnectorEnabledrecord component
-
queryBusConnectorEnabled
public boolean queryBusConnectorEnabled()Returns the value of thequeryBusConnectorEnabledrecord component.- Returns:
- the value of the
queryBusConnectorEnabledrecord component
-