Packages

case class Callback[P, W, V, ID](update: (W) => (V) => (P) => Future[Unit], predicate: (V) => Boolean = (_ : V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], lv: LocalQueryable[V, W, ID]) extends TypedPostResponse[P, W, ID] with Product with Serializable

Callback executed on a post of type P; the returned task gives an empty vector, but running it executes the callback, in fact, a callback is executed for each value of the auxiliary queryable

update

the callback, may also update the web as a side-effect

predicate

condition on post to trigger callbask

pw

postability

lv

queryability of parameters on which the callback depends

Linear Supertypes
Serializable, Product, Equals, TypedPostResponse[P, W, ID], PostResponse[W, ID], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Callback
  2. Serializable
  3. Product
  4. Equals
  5. TypedPostResponse
  6. PostResponse
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Callback(update: (W) => (V) => (P) => Future[Unit], predicate: (V) => Boolean = (_ : V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], lv: LocalQueryable[V, W, ID])

    update

    the callback, may also update the web as a side-effect

    predicate

    condition on post to trigger callbask

    pw

    postability

    lv

    queryability of parameters on which the callback depends

Type Members

  1. type PostType = P
    Definition Classes
    TypedPostResponsePostResponse

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &&(that: TypedPostResponse[P, W, ID]): ConcurrentResponse[P, W, ID]
    Definition Classes
    TypedPostResponse
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toany2stringadd[Callback[P, W, V, ID]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (Callback[P, W, V, ID], B)
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toArrowAssoc[Callback[P, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >>[Q](that: TypedPostResponse[Q, W, ID])(implicit qw: Postable[Q, W, ID], dg: DataGetter[Q, W, ID]): ComposedResponse[P, Q, W, ID]
    Definition Classes
    TypedPostResponse
  8. def andThen[Q, V](second: Callback[Q, W, V, ID])(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID]): AndThen[P, Q, V, W, ID]
    Definition Classes
    TypedPostResponse
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def ensuring(cond: (Callback[P, W, V, ID]) => Boolean, msg: => Any): Callback[P, W, V, ID]
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toEnsuring[Callback[P, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Callback[P, W, V, ID]) => Boolean): Callback[P, W, V, ID]
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toEnsuring[Callback[P, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): Callback[P, W, V, ID]
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toEnsuring[Callback[P, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Callback[P, W, V, ID]
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toEnsuring[Callback[P, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toStringFormat[Callback[P, W, V, ID]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val name: Option[String]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def post(web: W, content: P, id: ID): Future[Vector[PostData[_, W, ID]]]
    Definition Classes
    CallbackTypedPostResponsePostResponse
  24. val predicate: (V) => Boolean
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. implicit val pw: Postable[P, W, ID]
    Definition Classes
    TypedPostResponse
  27. def reduce[Q, R](reduction: (Vector[Q]) => R)(implicit qw: Postable[Q, W, ID], rw: Postable[R, W, ID], dgr: DataGetter[R, W, ID]): ReducedResponse[P, Q, R, W, ID]
    Definition Classes
    TypedPostResponse
  28. def respond(web: W)(pds: Vector[PostData[PostType, W, ID]]): Future[Vector[PostData[_, W, ID]]]
    Definition Classes
    PostResponse
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def triggerWith[R](implicit rw: Postable[R, W, ID], pq: LocalQueryable[P, W, ID]): Callback[R, W, ::[P, ::[V, HNil]], ID]
  31. val update: (W) => (V) => (P) => Future[Unit]
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (Callback[P, W, V, ID], B)
    Implicit
    This member is added by an implicit conversion from Callback[P, W, V, ID] toArrowAssoc[Callback[P, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TypedPostResponse[P, W, ID]

Inherited from PostResponse[W, ID]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromCallback[P, W, V, ID] to any2stringadd[Callback[P, W, V, ID]]

Inherited by implicit conversion StringFormat fromCallback[P, W, V, ID] to StringFormat[Callback[P, W, V, ID]]

Inherited by implicit conversion Ensuring fromCallback[P, W, V, ID] to Ensuring[Callback[P, W, V, ID]]

Inherited by implicit conversion ArrowAssoc fromCallback[P, W, V, ID] to ArrowAssoc[Callback[P, W, V, ID]]

Ungrouped