Record Class ApiTelemetryWork

java.lang.Object
java.lang.Record
org.neo4j.driver.internal.telemetry.ApiTelemetryWork

public record ApiTelemetryWork(TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged) extends Record
  • Constructor Details

    • ApiTelemetryWork

      public ApiTelemetryWork(TelemetryApi telemetryApi)
    • ApiTelemetryWork

      public ApiTelemetryWork(TelemetryApi telemetryApi, AtomicBoolean enabled, AtomicBoolean acknowledged)
      Creates an instance of a ApiTelemetryWork record class.
      Parameters:
      telemetryApi - the value for the telemetryApi record component
      enabled - the value for the enabled record component
      acknowledged - the value for the acknowledged record component
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • acknowledge

      public void acknowledge()
    • pipelineTelemetryIfEnabled

      public CompletionStage<BoltConnection> pipelineTelemetryIfEnabled(BoltConnection connection)
    • equals

      public boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • telemetryApi

      public TelemetryApi telemetryApi()
      Returns the value of the telemetryApi record component.
      Returns:
      the value of the telemetryApi record component
    • enabled

      public AtomicBoolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • acknowledged

      public AtomicBoolean acknowledged()
      Returns the value of the acknowledged record component.
      Returns:
      the value of the acknowledged record component