public class GridStreamerRandomEventRouter extends GridStreamerEventRouterAdapter
| Constructor and Description |
|---|
GridStreamerRandomEventRouter()
Empty constructor for spring.
|
GridStreamerRandomEventRouter(Collection<GridPredicate<GridNode>> predicates)
Constructs random event router with optional set of filters to apply to streamer projection.
|
GridStreamerRandomEventRouter(GridPredicate<GridNode>... predicates)
Constructs random event router with optional set of filters to apply to streamer projection.
|
| Modifier and Type | Method and Description |
|---|---|
GridNode |
route(GridStreamerContext ctx,
String stageName,
Object evt)
Selects a node for given event that should be processed by a stage with given name.
|
routepublic GridStreamerRandomEventRouter()
public GridStreamerRandomEventRouter(@Nullable GridPredicate<GridNode>... predicates)
predicates - Node predicates.public GridStreamerRandomEventRouter(Collection<GridPredicate<GridNode>> predicates)
predicates - Node predicates.public GridNode route(GridStreamerContext ctx, String stageName, Object 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.