public class StreamRouter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StreamRuleService |
streamRuleService |
protected StreamService |
streamService |
| Constructor and Description |
|---|
StreamRouter(StreamService streamService,
StreamRuleService streamRuleService,
com.codahale.metrics.MetricRegistry metricRegistry,
Configuration configuration,
NotificationService notificationService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesStreamMatch(Map<StreamRule,Boolean> ruleMatches) |
protected com.codahale.metrics.Meter |
getExceptionMeter(String streamId) |
protected com.codahale.metrics.Timer |
getExecutionTimer(String streamId) |
protected com.codahale.metrics.Meter |
getIncomingMeter(String streamId) |
Map<StreamRule,Boolean> |
getRuleMatches(Stream stream,
Message msg) |
boolean |
matchStreamRule(Message msg,
StreamRuleMatcher matcher,
StreamRule rule) |
List<Stream> |
route(Message msg) |
protected final StreamService streamService
protected final StreamRuleService streamRuleService
@Inject public StreamRouter(StreamService streamService, StreamRuleService streamRuleService, com.codahale.metrics.MetricRegistry metricRegistry, Configuration configuration, NotificationService notificationService)
public Map<StreamRule,Boolean> getRuleMatches(Stream stream, Message msg)
public boolean doesStreamMatch(Map<StreamRule,Boolean> ruleMatches)
public boolean matchStreamRule(Message msg, StreamRuleMatcher matcher, StreamRule rule)
protected com.codahale.metrics.Meter getIncomingMeter(String streamId)
protected com.codahale.metrics.Timer getExecutionTimer(String streamId)
protected com.codahale.metrics.Meter getExceptionMeter(String streamId)
Copyright © 2012–2014 TORCH GmbH. All rights reserved.