Interface Switchboard

All Known Implementing Classes:
SimpleInMemorySwitchboard, TestSwitchboard

public interface Switchboard
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Post a Message to the switchboard.
    void
    watch(Consumer<Message> consumer)
    Watch the switchboard for new messages.
  • Method Details

    • post

      void post(Message.Builder message)
      Post a Message to the switchboard.
    • watch

      void watch(Consumer<Message> consumer)
      Watch the switchboard for new messages.

      This is intended to be used mostly internally; "applications" should write Agents, instead.