Interface MessageOutput

All Superinterfaces:
Stoppable
All Known Implementing Classes:
BenchmarkOutput, BlockingBatchedESOutput, DiscardMessageOutput, ElasticSearchOutput, GelfOutput, LoggingOutput

public interface MessageOutput extends Stoppable
  • Method Details

    • isRunning

      boolean isRunning()
    • write

      void write(Message message) throws Exception
      Throws:
      Exception
    • write

      void write(List<Message> messages) throws Exception
      Throws:
      Exception
    • initialize

      default void initialize() throws Exception
      Initialize output, if not done in the constructor. Allows for graceful handling of initialization failures, e.g. because of an insufficient license. The output-launching code will call this method right after constructing the output instance.
      Throws:
      InsufficientLicenseException - if the output could not be initialized due to an insufficient license.
      Exception