public class GridStreamerCacheAffinityEventRouter extends GridStreamerEventRouterAdapter
GridStreamerCacheAffinityEventRouter.CacheAffinityEvent.affinityKey() method. If event does not implement
GridStreamerCacheAffinityEventRouter.CacheAffinityEvent interface, then event will be routed always to local node.| Modifier and Type | Class and Description |
|---|---|
static interface |
GridStreamerCacheAffinityEventRouter.CacheAffinityEvent
All events that implement this interface will be routed based on key affinity.
|
| Constructor and Description |
|---|
GridStreamerCacheAffinityEventRouter() |
| Modifier and Type | Method and Description |
|---|---|
<T> GridNode |
route(GridStreamerContext ctx,
String stageName,
T evt)
Selects a node for given event that should be processed by a stage with given name.
|
routepublic GridStreamerCacheAffinityEventRouter()
public <T> GridNode route(GridStreamerContext 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.Copyright © 2014. All rights reserved.