Class RedisRatelimiterObject

java.lang.Object
org.redisson.RedissonObject
org.aoju.bus.limiter.support.rate.redis.RedisRatelimiterObject
All Implemented Interfaces:
org.redisson.api.RObject, org.redisson.api.RObjectAsync

public class RedisRatelimiterObject extends org.redisson.RedissonObject
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields inherited from class org.redisson.RedissonObject

    codec, commandExecutor, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisRatelimiterObject(org.redisson.client.codec.Codec codec, org.redisson.command.CommandAsyncExecutor commandExecutor, String name)
     
    RedisRatelimiterObject(org.redisson.command.CommandAsyncExecutor commandExecutor, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    tryAcquire(long permits, double rate, long capacity)
     

    Methods inherited from class org.redisson.RedissonObject

    addListener, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisRatelimiterObject

      public RedisRatelimiterObject(org.redisson.client.codec.Codec codec, org.redisson.command.CommandAsyncExecutor commandExecutor, String name)
    • RedisRatelimiterObject

      public RedisRatelimiterObject(org.redisson.command.CommandAsyncExecutor commandExecutor, String name)
  • Method Details

    • tryAcquire

      public boolean tryAcquire(long permits, double rate, long capacity)