class SimpleSession[W, ID] extends AnyRef
A simple session to post stuff, call responses and if these responses generate posts, recursively call itself for them.
- Alphabetic
- By Inheritance
- SimpleSession
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toany2stringadd[SimpleSession[W, ID]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SimpleSession[W, ID], B)
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toArrowAssoc[SimpleSession[W, ID]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val completedResponses: ArrayBuffer[(ID, PostResponse[W, ID])]
- val completionResponse: Option[(W) => Future[PostData[_, W, ID]]]
- def ensuring(cond: (SimpleSession[W, ID]) => Boolean, msg: => Any): SimpleSession[W, ID]
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SimpleSession[W, ID]) => Boolean): SimpleSession[W, ID]
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SimpleSession[W, ID]
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SimpleSession[W, ID]
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toStringFormat[SimpleSession[W, ID]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def post[P](content: P, preds: Set[ID], withResponse: Boolean = true)(implicit pw: Postable[P, W, ID], dg: DataGetter[P, W, ID]): Future[PostData[_, W, ID]]
recursively posting and running (as side-effects) offspring tasks, this posts the head but bots will be called with a different method that does not post the head, to avoid duplication
recursively posting and running (as side-effects) offspring tasks, this posts the head but bots will be called with a different method that does not post the head, to avoid duplication
- content
the post content
- preds
the predecessor posts
- pw
postability
- returns
the data of the post as a future
- def query[Q](predicate: (Q) => Boolean = (_: Q) => true)(implicit q: Queryable[Q, W]): Future[Q]
a query from the web
a query from the web
- predicate
condition to be satisfied
- q
queribility
- returns
response to query as a future
- def queryAt[Q](id: ID, predicate: (Q) => Boolean = (_: Q) => true)(implicit q: LocalQueryable[Q, W, ID]): Future[Vector[Q]]
a query from the web at a position
a query from the web at a position
- id
the postion
- predicate
condition to be satisfied
- q
queribility
- returns
response to query as a future
- def remainingResponses: Vector[(ID, PostResponse[W, ID])]
- def respond[P](content: P, postID: ID)(implicit pw: Postable[P, W, ID]): Unit
the recursive step for posting, the given content is not posted, only the responses are.
the recursive step for posting, the given content is not posted, only the responses are.
- content
the head content, not post
- postID
the ID of the head, to be used as predecessor for the other posts
- pw
postability
- def respondSeq(pds: Vector[PostData[_, W, ID]]): Unit
- var responses: Vector[PostResponse[W, ID]]
- def running: Boolean
- val startedResponses: ArrayBuffer[(ID, PostResponse[W, ID])]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val web: W
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (SimpleSession[W, ID], B)
- Implicit
- This member is added by an implicit conversion from SimpleSession[W, ID] toArrowAssoc[SimpleSession[W, 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.