Packages

o

fm.common

Service

object Service

Source
Service.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Service
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait BackOffStrategy extends AnyRef
  2. final case class ConstantWait(duration: FiniteDuration) extends BackOffStrategy with Product with Serializable

    Wait a constant amount of time between retries

  3. final case class ExponentialBackoff(baseAmount: FiniteDuration) extends BackOffStrategy with Product with Serializable

    Simple form of exponential backoff that is simply (tryCount * tryCount * baseAmount)

    Simple form of exponential backoff that is simply (tryCount * tryCount * baseAmount)

    For a base amount of 1 second you get: retry 1 - 1 Second retry 2 - 4 Seconds retry 3 - 9 seconds retry 4 - 16 seconds

    For a base amount of 500 milliseconds you get: retry 1 - 500 milliseconds retry 2 - 2,000 milliseconds retry 3 - 4,500 milliseconds retry 4 - 8,000 milliseconds

  4. sealed trait LoggingOption extends AnyRef
  5. final case class SLF4JLogger(logger: org.slf4j.Logger) extends LoggingOption with Product with Serializable
  6. final case class UseLogger(logger: Logger) extends LoggingOption with Product with Serializable

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def call[X](msg: String = "Calling Service", logging: LoggingOption = UseStdOut, exceptionHandler: PartialFunction[Exception, Unit] = Service.defaultExceptionHandler, delayBetweenCalls: FiniteDuration = Service.defaultDelayBetweenCalls, backOffStrategy: BackOffStrategy = Service.defaultBackOffStrategy, maxRetries: Int = Service.defaultMaxRetries)(f: => X): X
  6. def callAsync[X](msg: String = "Calling Async Service", logging: LoggingOption = UseStdOut, exceptionHandler: PartialFunction[Exception, Unit] = Service.defaultExceptionHandler, delayBetweenCalls: FiniteDuration = Service.defaultDelayBetweenCalls, backOffStrategy: BackOffStrategy = Service.defaultBackOffStrategy, maxRetries: Int = Service.defaultMaxRetries)(f: => Future[X])(implicit executionContext: ExecutionContext = ExecutionContext.global, timer: ScheduledTaskRunner = ScheduledTaskRunner.global): Future[X]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. object BackOffStrategy
  22. object LoggingOption
  23. case object NoLogging extends LoggingOption with Product with Serializable
  24. case object NoWait extends BackOffStrategy with Product with Serializable

    Don't wait between retries

  25. object UseLogger extends Serializable
  26. case object UseStdOut extends LoggingOption with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped