public class StreamerCacheAffinityEventRouter extends StreamerEventRouterAdapter
StreamerCacheAffinityEventRouter.CacheAffinityEvent.affinityKey() method. If event does not implement
StreamerCacheAffinityEventRouter.CacheAffinityEvent interface, then event will be routed always to local node.| Modifier and Type | Class and Description |
|---|---|
static interface |
StreamerCacheAffinityEventRouter.CacheAffinityEvent
All events that implement this interface will be routed based on key affinity.
|
| Constructor and Description |
|---|
StreamerCacheAffinityEventRouter() |
| Modifier and Type | Method and Description |
|---|---|
<T> ClusterNode |
route(StreamerContext ctx,
String stageName,
T evt)
Selects a node for given event that should be processed by a stage with given name.
|
routepublic <T> ClusterNode route(StreamerContext ctx, String stageName, T evt)
ctx - Streamer context.stageName - Stage name.evt - Event to route.null then the whole pipeline execution
will be terminated. All running and ongoing stages for pipeline execution will be
cancelled.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015