Class ThrottleableTransport2
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
org.graylog2.plugin.inputs.transports.ThrottleableTransport2
- All Implemented Interfaces:
Transport
- Direct Known Subclasses:
HttpPollTransport
Newer version of the
ThrottleableTransport
which launches
with an InputFailureRecorder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
ThrottleableTransport.Config
Nested classes/interfaces inherited from interface org.graylog2.plugin.inputs.transports.Transport
Transport.Factory<T extends Transport>
-
Field Summary
Fields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, eventBus, throttlingAllowed
-
Constructor Summary
ConstructorDescriptionThrottleableTransport2
(com.google.common.eventbus.EventBus eventBus, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
doLaunch
(MessageInput input) Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.protected abstract void
doLaunch
(MessageInput input, InputFailureRecorder inputFailureRecorder) void
launch
(MessageInput input, InputFailureRecorder inputFailureRecorder) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
blockUntilUnthrottled, blockUntilUnthrottled, determineIfThrottled, doStop, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog2.plugin.inputs.transports.Transport
getMetricSet, setMessageAggregator
-
Constructor Details
-
ThrottleableTransport2
public ThrottleableTransport2(com.google.common.eventbus.EventBus eventBus, Configuration configuration)
-
-
Method Details
-
launch
public void launch(MessageInput input, InputFailureRecorder inputFailureRecorder) throws MisfireException - Throws:
MisfireException
-
doLaunch
Description copied from class:ThrottleableTransport
Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.- Specified by:
doLaunch
in classThrottleableTransport
- Throws:
MisfireException
-
doLaunch
protected abstract void doLaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) throws MisfireException - Throws:
MisfireException
-