public class HttpPollTransport extends ThrottleableTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpPollTransport.Config |
static interface |
HttpPollTransport.Factory |
CK_THROTTLING_ALLOWED| Constructor and Description |
|---|
HttpPollTransport(Configuration configuration,
com.google.common.eventbus.EventBus serverEventBus,
ServerStatus serverStatus,
ScheduledExecutorService scheduler,
okhttp3.OkHttpClient httpClient) |
| 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() |
void |
lifecycleStateChange(Lifecycle lifecycle) |
void |
setMessageAggregator(CodecAggregator aggregator) |
blockUntilUnthrottled, determineIfThrottled, isThrottled, launch, stop, updateThrottleStatepublic HttpPollTransport(Configuration configuration, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, @Named(value="daemonScheduler") ScheduledExecutorService scheduler, okhttp3.OkHttpClient httpClient)
public void lifecycleStateChange(Lifecycle lifecycle)
public void setMessageAggregator(CodecAggregator aggregator)
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.