Packages

c

genkai

TryRateLimiter

final class TryRateLimiter extends RateLimiter[Try]

Linear Supertypes
RateLimiter[Try], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TryRateLimiter
  2. RateLimiter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TryRateLimiter(rateLimiter: RateLimiter[Identity])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
    TryRateLimiterRateLimiter
  5. 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
  6. 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
  7. 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
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. 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
    TryRateLimiterRateLimiter
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def monadError: MonadError[Try]
    Attributes
    protected
    Definition Classes
    TryRateLimiterRateLimiter
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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
    TryRateLimiterRateLimiter
  22. 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
    TryRateLimiterRateLimiter
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from RateLimiter[Try]

Inherited from AnyRef

Inherited from Any

Ungrouped