java.lang.Object
java.lang.Record
org.neo4j.driver.internal.telemetry.ApiTelemetryWork
public record ApiTelemetryWork(TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged)
extends Record
-
Constructor Summary
ConstructorDescriptionApiTelemetryWork
(TelemetryApi telemetryApi) ApiTelemetryWork
(TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged) Creates an instance of aApiTelemetryWork
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the value of theacknowledged
record component.enabled()
Returns the value of theenabled
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.pipelineTelemetryIfEnabled
(BoltConnection connection) void
setEnabled
(boolean enabled) Returns the value of thetelemetryApi
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ApiTelemetryWork
-
ApiTelemetryWork
public ApiTelemetryWork(TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged) Creates an instance of aApiTelemetryWork
record class.- Parameters:
telemetryApi
- the value for thetelemetryApi
record componentenabled
- the value for theenabled
record componentacknowledged
- the value for theacknowledged
record component
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
acknowledge
public void acknowledge() -
pipelineTelemetryIfEnabled
-
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
telemetryApi
Returns the value of thetelemetryApi
record component.- Returns:
- the value of the
telemetryApi
record component
-
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
acknowledged
Returns the value of theacknowledged
record component.- Returns:
- the value of the
acknowledged
record component
-