Interface SessionFactory

  • All Known Implementing Classes:
    DummySessionFactory, MessageBusSessionFactory

    public interface SessionFactory
    Wraps the creation of messagebus source sessions to allow for unit testing of the components without involving messagebus itself.
    • Method Detail

      • createSendSession

        SendSession createSendSession​(com.yahoo.messagebus.ReplyHandler handler)
        Creates a messagebus session for sending regular messages.
        Parameters:
        handler - A replyhandler to callback when receiving replies from messagebus
        Returns:
        The session to use for sending messages.