Interface EventListener<T>

All Known Subinterfaces:
MessageEventListener

public interface EventListener<T>
An abstraction that defines an EventListener for receiving Zulip events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(T event)
    Actions to execute whenever an event is received.
  • Method Details

    • onEvent

      void onEvent(T event)
      Actions to execute whenever an event is received. It is recommended to keep the implementation lightweight to avoid blocking the event loop for long periods.
      Parameters:
      event - The Zulip event received