Interface Sink<T>

Type Parameters:
T - the event type
All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SseSink

public interface Sink<T> extends AutoCloseable
A generic sink interface to emit arbitrary events.
  • Method Summary

    Modifier and Type
    Method
    Description
    emit(T event)
    Emits an event using to the sink.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • emit

      Sink<T> emit(T event)
      Emits an event using to the sink.
      Parameters:
      event - the event to emit
      Returns:
      this sink