Package

reactivemongo.core

protocol

Permalink

package protocol

Visibility
  1. Public
  2. All

Type Members

  1. trait ChannelBufferReadable[T] extends AnyRef

    Permalink

    A constructor of T instances from a ByteBuf.

    A constructor of T instances from a ByteBuf.

    T

    type which instances can be constructed with this.

  2. trait ChannelBufferWritable extends AnyRef

    Permalink

    Something that can be written into a ByteBuf.

  3. sealed trait CollectionAwareRequestOp extends RequestOp

    Permalink

    A request that needs to know the full collection name.

  4. case class Delete(fullCollectionName: String, flags: Int) extends WriteRequestOp with Product with Serializable

    Permalink

    Delete operation.

    Delete operation.

    flags

    operation flags.

  5. case class GetMore(fullCollectionName: String, numberToReturn: Int, cursorID: Long) extends CollectionAwareRequestOp with Product with Serializable

    Permalink

    GetMore operation.

    GetMore operation.

    Allows to get more data from a cursor.

    numberToReturn

    number of documents to return in the response. 0 means the server will choose.

  6. case class Insert(flags: Int, fullCollectionName: String) extends WriteRequestOp with Product with Serializable

    Permalink

    Insert operation.

    Insert operation.

    flags

    Operation flags.

  7. case class KillCursors(cursorIDs: Set[Long]) extends RequestOp with Product with Serializable

    Permalink

    KillCursors operation.

    KillCursors operation.

    cursorIDs

    ids of the cursors to kill. Should not be empty.

  8. case class MessageHeader(messageLength: Int, requestID: Int, responseTo: Int, opCode: Int) extends ChannelBufferWritable with Product with Serializable

    Permalink

    Header of a Mongo Wire Protocol message.

    Header of a Mongo Wire Protocol message.

    messageLength

    length of this message.

    requestID

    id of this request (> 0 for request operations, else 0).

    responseTo

    id of the request that the message including this a response to (> 0 for reply operation, else 0).

    opCode

    operation code of this message.

  9. sealed trait Op extends AnyRef

    Permalink

    A Mongo Wire Protocol operation

  10. case class Query(flags: Int, fullCollectionName: String, numberToSkip: Int, numberToReturn: Int) extends CollectionAwareRequestOp with Product with Serializable

    Permalink

    Query operation.

    Query operation.

    flags

    the operation flags

    fullCollectionName

    the full name of the queried collection

    numberToSkip

    the number of documents to skip in the response.

    numberToReturn

    The number of documents to return in the response. 0 means the server will choose.

  11. case class Reply(flags: Int, cursorID: Long, startingFrom: Int, numberReturned: Int) extends Op with Product with Serializable

    Permalink

    Reply operation.

    Reply operation.

    flags

    The flags of this response.

    cursorID

    The cursor id. Strictly positive if a cursor has been created server side, 0 if none or exhausted.

    startingFrom

    The index the returned documents start from.

    numberReturned

    The number of documents that are present in this reply.

  12. case class ReplyDocumentIteratorExhaustedException(cause: Exception) extends Exception with Product with Serializable

    Permalink
  13. sealed trait RequestOp extends Op with ChannelBufferWritable

    Permalink

    A Mongo Wire Protocol request operation.

    A Mongo Wire Protocol request operation.

    Actually, all operations excepted Reply are requests.

  14. case class Update(fullCollectionName: String, flags: Int) extends WriteRequestOp with Product with Serializable

    Permalink

    Update operation.

    Update operation.

    flags

    Operation flags.

  15. sealed trait WriteRequestOp extends CollectionAwareRequestOp

    Permalink

    A request that will perform a write on the database

  16. sealed abstract class Response extends Product4[MessageHeader, Reply, ByteBuf, ResponseInfo] with Serializable

    Permalink

    A Mongo Wire Protocol Response messages.

    A Mongo Wire Protocol Response messages.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Internal: will be made private

Value Members

  1. object MessageHeader extends ChannelBufferReadable[MessageHeader] with Serializable

    Permalink

    Header deserializer from a ByteBuf.

  2. object QueryFlags

    Permalink

    Query flags.

  3. object Reply extends ChannelBufferReadable[Reply] with Serializable

    Permalink
  4. object ReplyDocumentIterator

    Permalink
  5. object UpdateFlags

    Permalink

Deprecated Value Members

  1. object Response extends Serializable

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Internal: will be made private

  2. object ResponseInfo extends AbstractFunction1[ChannelId, ResponseInfo]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Internal: will be made private

Ungrouped