Package org.elypia.webhooker
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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleandispatch(Payload payload)A callback to handle this payload, the response of this object is returned to the service that made the POST request.default StringgetId()
-
-
-
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
Webhookershould continue handling this payload.
-
getId
default String getId()
- Returns:
- An identifier for the dispatcher for easier (de)seralization of clients to external services.
-
-