Build a request for an handler.
Contains a stop, the scheduler snapshot and the current event.
Build a request for an handler. Contains a stop, the scheduler snapshot and the current event. * [See entity](docs/archi/request_entity.png)
(add-stop request m)Add map m among stop causes
Params:
requestm mapAdd map `m` among stop causes Params: * `request` * `m` map
(build current-event event-execution snapshot sorting stop)Builds a request for the middleware, with iteration dependant data.
Returns a map, with the data necessary for the request.
Params:
current-eventevent-executionscheduler-snapshotsortingstopBuilds a request for the middleware, with iteration dependant data. Returns a map, with the data necessary for the request. Params: * `current-event` * `event-execution` * `scheduler-snapshot` * `sorting` * `stop`
(prepare current-event event-execution snapshot sorting)Creates a request, based on event execution, snapshot and sorting
Returns the request gathering the snapshot, the sorting, stopping reasons.
Predefined stopping reasons are when no future events exist.
Params:
event-execution event execution, fn that takes a snapshot and return a event-returnsnapshot the snapshot before the iterationsorting function that take the future events and returns sorted future eventsCreates a request, based on event execution, snapshot and sorting Returns the request gathering the snapshot, the sorting, stopping reasons. Predefined stopping reasons are when no future events exist. Params: * `event-execution` event execution, fn that takes a snapshot and return a event-return * `snapshot` the snapshot before the iteration * `sorting` function that take the future events and returns sorted future events
(schema)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |