Object

fm.common

Service

Related Doc: package common

Permalink

object Service

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

Type Members

  1. sealed trait BackOffStrategy extends AnyRef

    Permalink
  2. final case class ConstantWait(duration: FiniteDuration) extends BackOffStrategy with Product with Serializable

    Permalink

    Wait a constant amount of time between retries

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

    Permalink

    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

    Permalink
  5. final case class SLF4JLogger(logger: org.slf4j.Logger) extends LoggingOption with Product with Serializable

    Permalink
  6. final case class UseLogger(logger: Logger) extends LoggingOption with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object BackOffStrategy

    Permalink
  5. object LoggingOption

    Permalink
  6. object NoLogging extends LoggingOption with Product with Serializable

    Permalink
  7. object NoWait extends BackOffStrategy with Product with Serializable

    Permalink

    Don't wait between retries

  8. object UseLogger extends Serializable

    Permalink
  9. object UseStdOut extends LoggingOption with Product with Serializable

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. 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

    Permalink
  12. 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]

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped