Interface DispatchManager

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractDispatchManager, DefaultDispatchManager

public interface DispatchManager extends Closeable
  • Method Details

    • catnip

      void catnip(Catnip catnip)
    • dispatchEvent

      void dispatchEvent(String address, Object event)
      Dispatches an event to the provided address.
      Parameters:
      address - Address to send the event to.
      event - Event to dispatch.
    • createConsumer

      <T> MessageConsumer<T> createConsumer(String address)
      Returns a consumer listening on the provided address.
      Type Parameters:
      T - Type of the event handled by the consumer.
      Parameters:
      address - Address to listen on.
      Returns:
      A consumer listening on the provided address.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable