Interface MessengerProvider

    • Method Detail

      • getName

        @NonNull String getName()
        Gets the name of this provider.
        Returns:
        the provider name
      • obtain

        @NonNull Messenger obtain​(@NonNull IncomingMessageConsumer incomingMessageConsumer)
        Creates and returns a new Messenger instance, which passes incoming messages to the provided IncomingMessageConsumer.

        As the agent should pass incoming messages to the given consumer, this method should always return a new object.

        Parameters:
        incomingMessageConsumer - the consumer the new instance should pass incoming messages to
        Returns:
        a new messenger agent instance