All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.sdk.common.BufferFlusher Maven / Gradle / Ivy

package com.wavefront.sdk.common;

import java.io.IOException;

/**
 * Buffer flusher that is responsible for flushing the buffer whenever flush method is invoked.
 *
 * @author Sushant Dewan ([email protected]).
 */
public interface BufferFlusher {

  /**
   * Flushes buffer, if applicable
   *
   * @throws IOException
   */
  void flush() throws IOException;

  /**
   * Returns the number of failed writes to the server.
   *
   * @return the number of failed writes to the server
   */
  int getFailureCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy