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

Type Members

  1. class SequencedCallback[A] extends AnyRef

    The class tag is only needed to construct the array

  2. class TupledCallback[A, B] extends AnyRef

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 Implicits

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

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. 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

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

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

    Definition Classes
    AnyRef → Any
  13. 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

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. 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

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

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

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

  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  23. 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

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

  25. 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

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped