[][src]Module nakadion::handler

Kit for creating a a handler for batches of events

Start here if you want to implement a handler for processing of events

Structs

BatchMeta

Information on the current batch passed to a BatchHandler.

BatchStats

Statistics on the processed batch

Bytes

A reference counted contiguous slice of memory.

Error

An error for cases where further investigation is not necessary.

HandlerFn

Simple wrapper for BatchHandlers from closures

Enums

BatchPostAction

Returned by a BatchHandler and tell Nakadion how to continue.

EventsPostAction

This is basically the same as a ProcessingStatus but returned from a EventsHandler.

HandlerAssignment

Defines what a BatchHandler will receive.

InactivityAnswer

Returned by a BatchHandler when queried on inactivity.

SpawnTarget

Traits

BatchHandler

A handler that implements batch processing logic.

BatchHandlerFactory

A factory that creates BatchHandlers.

EventsHandler

Basically the same a BatchHandler with the difference that deserialized events are passed to the processing logic.

Type Definitions

BatchHandlerFuture
EventDeserializationResult
EventsHandlerFuture