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.ConfigNested 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
ConstructorsConstructorDescriptionThrottleableTransport2(com.google.common.eventbus.EventBus eventBus, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddoLaunch(MessageInput input) Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)but guarantees that the superclass' actions are performed.protected abstract voiddoLaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) voidlaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
blockUntilUnthrottled, blockUntilUnthrottled, determineIfThrottled, doStop, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ThrottleableTransportPerforms the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)but guarantees that the superclass' actions are performed.- Specified by:
doLaunchin classThrottleableTransport- Throws:
MisfireException
-
doLaunch
protected abstract void doLaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) throws MisfireException - Throws:
MisfireException
-