Interface Dispatcher

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Dispatcher
    Multiple dispatchers can be assigned to a client dispatchers are how webhook payloads are handled by Webhooker.
    • Method Detail

      • dispatch

        boolean dispatch​(Payload payload)
        A callback to handle this payload, the response of this object is returned to the service that made the POST request.
        Parameters:
        payload - The client, request and response that represents this payload.
        Returns:
        If Webhooker should continue handling this payload.
      • getId

        default String getId()
        Returns:
        An identifier for the dispatcher for easier (de)seralization of clients to external services.