public static interface EventRouter.Default extends EventRouter
EventRouter.EventRouter.Default, EventRouter.RoutingContext| Modifier and Type | Method and Description |
|---|---|
default void |
routeEvent(DirectBuffer buffer,
int offset,
int length)
Routes an
APPLICATION event already encoded in the given buffer. |
default void |
routeEvent(int type,
DirectBuffer buffer,
int offset,
int length)
Routes an already encoded event of the specified event
type. |
default void |
routeEventWithoutPayload(int type)
Routes an event of the specified event
type that carries no payload data. |
default EventRouter.RoutingContext |
routingEvent()
Starts routing of an
APPLICATION event and returns the routing context with the
buffer for event encoding. |
isSkipped, nextEventIndex, routingEvent, skipCommanddefault EventRouter.RoutingContext routingEvent()
EventRouterAPPLICATION event and returns the routing context with the
buffer for event encoding. Encoding and routing is completed with route(..)
and is recommended to be performed inside a try-resource block; see class documentation for
an example.routingEvent in interface EventRouterdefault void routeEvent(DirectBuffer buffer, int offset, int length)
EventRouterAPPLICATION event already encoded in the given buffer.routeEvent in interface EventRouterbuffer - the buffer containing the event dataoffset - offset where the event data starts in bufferlength - the length of the event data in bytesdefault void routeEvent(int type,
DirectBuffer buffer,
int offset,
int length)
EventRoutertype.routeEvent in interface EventRoutertype - the event type, typically non-negative for application events (plugins use negative event types)buffer - the buffer containing the event dataoffset - offset where the event data starts in bufferlength - the length of the event data in bytesdefault void routeEventWithoutPayload(int type)
EventRoutertype that carries no payload data.routeEventWithoutPayload in interface EventRoutertype - the event type, typically non-negative for application events (plugins use negative event types)Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.