colossus.service

Callback

object Callback

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Callback
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object FutureImplicits

  7. object Implicits

  8. def apply[I](f: ((Try[I]) ⇒ Unit) ⇒ Unit): Callback[I]

    Convert a function into a Callback.

    Convert a function into a Callback. The function's parameter is a continuation that will be the fully built mappings on the result Callback.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def complete[I](value: Try[I]): Callback[I]

    Create a callback that immediately returns the value

    Create a callback that immediately returns the value

    value

    the successful value or error to complete with

  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def failed[I](err: Throwable): Callback[I]

    returns a callback that will immediately fail with the given error

    returns a callback that will immediately fail with the given error

    err

    the error to return

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fromFuture[I](future: Future[I])(implicit executor: CallbackExecutor): Callback[I]

    Convert a Future to a Callback

    Convert a Future to a Callback

    Because Callbacks are expected to be handled entirely in a single thread, you must provide an executor actor which will finish processing the callback after the future is complete (eg if someone maps or flatMaps this callback

    IMPORTANT - the executor actor must be able to handle the CallbackExec message. All it has to do is call the execute() method. Or you can mixin the CallbackExecutor trait and compose handleCallback with your receives!!

    future

    The future to convert

    executor

    The executor actor to complete the callback

    returns

    Callback linked to the Future

  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. def identity[A]: (A) ⇒ A

  20. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def schedule[I](in: FiniteDuration)(cb: Callback[I])(implicit executor: CallbackExecutor): Callback[I]

    Schedule a callback to be executed after a delay

    Schedule a callback to be executed after a delay

    This method requires an implicit executor actor, which must be able to handle CallbackExec messages

    in

    how long to wait before executing the callback

    cb

    the callback to execute

  25. def sequence[A](callbacks: Seq[Callback[A]])(implicit arg0: ClassTag[A]): Callback[Seq[Try[A]]]

    Convert a sequence of Callbacks into a single Callback contains a sequence of all the results.

    Convert a sequence of Callbacks into a single Callback contains a sequence of all the results. The result type is Try[A] so that the success/failure of each individual Callback can be determined.

  26. def successful[I](value: I): Callback[I]

    returns a callback that will immediately succeed with the value as soon as its executed

    returns a callback that will immediately succeed with the value as soon as its executed

    value

    the value to complete with

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def zip[A, B](a: Callback[A], b: Callback[B]): Callback[(A, B)]

    Zip two Callbacks together into a single Callback containing a tuple of the results.

Inherited from AnyRef

Inherited from Any

Ungrouped