final class TryRateLimiter extends RateLimiter[Try]
- Alphabetic
- By Inheritance
- TryRateLimiter
- RateLimiter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TryRateLimiter(rateLimiter: RateLimiter[Identity])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def acquire[A](key: A, instant: Instant, cost: Long)(implicit arg0: Key[A]): Try[Boolean]
Try to acquire token.
Try to acquire token. Returns immediately.
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- instant
- request time
- cost
- request cost
- returns
- true if token was acquired, false - otherwise
- Definition Classes
- TryRateLimiter → RateLimiter
- final def acquire[A](key: A, cost: Long)(implicit arg0: Key[A]): Try[Boolean]
Try to acquire token.
Try to acquire token. Returns immediately.
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- cost
- request cost
- Definition Classes
- RateLimiter
- final def acquire[A](key: A, instant: Instant)(implicit arg0: Key[A]): Try[Boolean]
Try to acquire token.
Try to acquire token. Returns immediately.
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- instant
- request time
- Definition Classes
- RateLimiter
- final def acquire[A](key: A)(implicit arg0: Key[A]): Try[Boolean]
Try to acquire token.
Try to acquire token. Returns immediately.
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- Definition Classes
- RateLimiter
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Try[Unit]
Close underlying resources if any
Close underlying resources if any
- returns
- unit if successfully closed or error wrapped in effect
- Definition Classes
- TryRateLimiter → RateLimiter
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def monadError: MonadError[Try]
- Attributes
- protected
- Definition Classes
- TryRateLimiter → RateLimiter
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def permissions[A](key: A)(implicit arg0: Key[A]): Try[Long]
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- returns
- unused permissions
- Definition Classes
- TryRateLimiter → RateLimiter
- def reset[A](key: A)(implicit arg0: Key[A]): Try[Unit]
- A
- key type with implicit genkai.Key type class instance
- key
- ~ object id
- returns
- unit if successfully reset tokens
- Definition Classes
- TryRateLimiter → RateLimiter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()