public abstract class GeneratorTransport extends ThrottleableTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneratorTransport.Config |
Transport.Factory<T extends Transport>CK_THROTTLING_ALLOWED| Constructor and Description |
|---|
GeneratorTransport(com.google.common.eventbus.EventBus eventBus,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
doLaunch(MessageInput input)
Performs the same purpose as
ThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput) but guarantees that the superclass'
actions are performed. |
void |
doStop()
Performs the same purpose as
ThrottleableTransport.stop() but guarantees that the superclass' actions are performed. |
com.codahale.metrics.MetricSet |
getMetricSet() |
protected abstract RawMessage |
produceRawMessage(MessageInput input) |
void |
setMessageAggregator(CodecAggregator aggregator) |
blockUntilUnthrottled, determineIfThrottled, isThrottled, launch, stop, updateThrottleStatepublic GeneratorTransport(com.google.common.eventbus.EventBus eventBus,
Configuration configuration)
public void setMessageAggregator(CodecAggregator aggregator)
protected abstract RawMessage produceRawMessage(MessageInput input)
public void doLaunch(MessageInput input) throws MisfireException
ThrottleableTransportThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput) but guarantees that the superclass'
actions are performed.doLaunch in class ThrottleableTransportMisfireExceptionpublic void doStop()
ThrottleableTransportThrottleableTransport.stop() but guarantees that the superclass' actions are performed.doStop in class ThrottleableTransportpublic com.codahale.metrics.MetricSet getMetricSet()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.