Package de.codecentric.limiter.internal
Class RatelimiterOperations
- java.lang.Object
-
- de.codecentric.limiter.internal.RatelimiterOperations
-
- All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Startable,org.mule.runtime.api.lifecycle.Stoppable
public class RatelimiterOperations extends Object implements org.mule.runtime.api.lifecycle.Stoppable, org.mule.runtime.api.lifecycle.Startable
This class is a container for operations, every public method in this class will be taken as an extension operation.
-
-
Constructor Summary
Constructors Constructor Description RatelimiterOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfixedDelay(long delay, TimeUnit unit, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)voidlimitRate(RatelimiterConfiguration configuration, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)Delay the flow if called too fast.voidstart()voidstop()
-
-
-
Method Detail
-
limitRate
@Throws(ExecuteErrorProvider.class) public void limitRate(@Config RatelimiterConfiguration configuration, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)
Delay the flow if called too fast.
-
fixedDelay
public void fixedDelay(long delay, TimeUnit unit, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)
-
start
public void start()
- Specified by:
startin interfaceorg.mule.runtime.api.lifecycle.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.mule.runtime.api.lifecycle.Stoppable
-
-