class ChangeStream extends AnyRef
A stream that represents a connection to the _changes
stream of a database.
- Alphabetic
- By Inheritance
- ChangeStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
all(docIds: Iterable[String] = Vector.empty[String], conflicts: Boolean = false, descending: Boolean = false, filter: Option[String] = None, selector: Option[Selector] = None, designOnly: Boolean = false, includeDocs: Boolean = false, attachments: Boolean = false, attEncodingInfo: Boolean = false, lastEventId: Option[Int] = None, limit: Option[Int] = None, since: Since = Origin, style: Option[String] = None, view: Option[String] = None): Source[Change, UniqueKillSwitch]
Returns a continuous stream representing the changes in the database.
Returns a continuous stream representing the changes in the database. Each change produces an element in the stream. The returned stream can be cancelled using the kill switch returned by materializing it. E.g. if you want to log the changes to the console and shut it down after a while, you can write
val stream = db.changes.stream() val killSwitch = stream.toMat(Sink.foreach(println _))(Keep.left).run() ... killSwitch.shutdown()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
current(docIds: Iterable[String] = Vector.empty[String], conflicts: Boolean = false, descending: Boolean = false, filter: Option[String] = None, selector: Option[Selector] = None, designOnly: Boolean = false, includeDocs: Boolean = false, attachments: Boolean = false, attEncodingInfo: Boolean = false, lastEventId: Option[Int] = None, limit: Option[Int] = None, since: Since = Origin, style: Option[String] = None, view: Option[String] = None): Future[Changes]
Returns a one-shot view of changes for this database.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ChangeStream → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
once(docIds: Iterable[String] = Vector.empty[String], conflicts: Boolean = false, descending: Boolean = false, filter: Option[String] = None, selector: Option[Selector] = None, designOnly: Boolean = false, includeDocs: Boolean = false, attachments: Boolean = false, attEncodingInfo: Boolean = false, lastEventId: Option[Int] = None, limit: Option[Int] = None, since: Option[Either[String, JsValue]] = None, style: Option[String] = None, view: Option[String] = None): Future[Changes]
Returns a one-shot view of changes for this database.
Returns a one-shot view of changes for this database.
- Annotations
- @deprecated
- Deprecated
(Since version Sohva 2.2.0) Use the
current
stream instead.
-
def
stream(docIds: Iterable[String] = Vector.empty[String], conflicts: Boolean = false, descending: Boolean = false, filter: Option[String] = None, selector: Option[Selector] = None, designOnly: Boolean = false, includeDocs: Boolean = false, attachments: Boolean = false, attEncodingInfo: Boolean = false, lastEventId: Option[Int] = None, limit: Option[Int] = None, since: Option[Either[String, JsValue]] = None, style: Option[String] = None, view: Option[String] = None): Source[Change, UniqueKillSwitch]
Returns a continuous stream representing the changes in the database.
Returns a continuous stream representing the changes in the database. Each change produces an element in the stream. The returned stream can be cancelled using the kill switch returned by materializing it. E.g. if you want to log the changes to the console and shut it down after a while, you can write
val stream = db.changes.stream() val killSwitch = stream.toMat(Sink.foreach(println _))(Keep.left).run() ... killSwitch.shutdown()
- Annotations
- @deprecated
- Deprecated
(Since version Sohva 2.2.0) Use the
all
stream instead.