skiff library
Classes
- Bus
- Takes an Event and passes it to any registered listeners.
- Event
- A marker interface for events.
-
FuncHandler<
R extends Request, Rs> - A Handler that has its work to perform defined via a function.
-
Handler<
R extends Request, Rs> - Defines an abstract handler
- Mediator
- Promotes loose coupling between caller and callees by orchestrating the dispatch of Request or Event objects.
- Registration
- Supplies behaviour for safe disposal of listeners.
- Relay
- Takes a Request and passes it to an appropriate Handler.
-
Request<
Rs> - A marker interface for requests.
- RequestResult
- Represents the result from a Request.
Typedefs
-
ExecuteRequest<
R, Rs> = Future< Rs> Function(R)
Exceptions / Errors
- AlreadyRegisteredException
- Exception thrown when attempting to add a handler for a request where one already exists.
- MediatorException
- MissingHandlerException
- Exception thrown when a handler doesn't exist for a request, indicating that it can't be handled.
- RequestTypeMissingException
- Exception thrown when attempting to add a handler without supplying a request type that the handler is associated with.