Record Class ApiTelemetryWork
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.telemetry.ApiTelemetryWork
public record ApiTelemetryWork(org.neo4j.bolt.connection.TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionApiTelemetryWork(org.neo4j.bolt.connection.TelemetryApi telemetryApi) ApiTelemetryWork(org.neo4j.bolt.connection.TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged) Creates an instance of aApiTelemetryWorkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the value of theacknowledgedrecord component.enabled()Returns the value of theenabledrecord component.booleanIndicates whether some other object is "equal to" this one.Optional<org.neo4j.bolt.connection.message.TelemetryMessage> getTelemetryMessageIfEnabled(DriverBoltConnection connection) inthashCode()Returns a hash code value for this object.voidsetEnabled(boolean enabled) org.neo4j.bolt.connection.TelemetryApiReturns the value of thetelemetryApirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiTelemetryWork
public ApiTelemetryWork(org.neo4j.bolt.connection.TelemetryApi telemetryApi) -
ApiTelemetryWork
public ApiTelemetryWork(org.neo4j.bolt.connection.TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged) Creates an instance of aApiTelemetryWorkrecord class.- Parameters:
telemetryApi- the value for thetelemetryApirecord componentenabled- the value for theenabledrecord componentacknowledged- the value for theacknowledgedrecord component
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
acknowledge
public void acknowledge() -
getTelemetryMessageIfEnabled
public Optional<org.neo4j.bolt.connection.message.TelemetryMessage> getTelemetryMessageIfEnabled(DriverBoltConnection connection) -
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
-
toString
-
telemetryApi
public org.neo4j.bolt.connection.TelemetryApi telemetryApi()Returns the value of thetelemetryApirecord component.- Returns:
- the value of the
telemetryApirecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
acknowledged
Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-