Class WriteSuccessEvent

java.lang.Object
com.influxdb.client.write.events.AbstractWriteEvent
com.influxdb.client.write.events.WriteSuccessEvent

public final class WriteSuccessEvent extends AbstractWriteEvent
The event is published when arrived the success response from InfluxDB 2.x server.
Author:
Jakub Bednar (bednar@github) (25/09/2018 12:26)
  • Constructor Details

    • WriteSuccessEvent

      public WriteSuccessEvent(@Nonnull String organization, @Nonnull String bucket, @Nonnull WritePrecision precision, @Nonnull String lineProtocol)
  • Method Details

    • getOrganization

      public String getOrganization()
      Returns:
      The organization that was used for write data.
    • getBucket

      public String getBucket()
      Returns:
      The bucket that was used for write data.
    • getPrecision

      public WritePrecision getPrecision()
      Returns:
      The Precision that was used for write data.
    • getLineProtocol

      public String getLineProtocol()
      Returns:
      The successfully written data.
    • logEvent

      public void logEvent()
      Description copied from class: AbstractWriteEvent
      Log current event by Logger.
      Specified by:
      logEvent in class AbstractWriteEvent