package protocol
- Alphabetic
- Public
- Protected
Type Members
- trait ChannelBufferReadable[T] extends AnyRef
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.
- trait ChannelBufferWritable extends AnyRef
Something that can be written into a ByteBuf.
- sealed trait CollectionAwareRequestOp extends RequestOp
A request that needs to know the full collection name.
- case class Delete(fullCollectionName: String, flags: Int) extends WriteRequestOp with Product with Serializable
Delete operation.
Delete operation.
- flags
operation flags.
- case class GetMore(fullCollectionName: String, numberToReturn: Int, cursorID: Long) extends CollectionAwareRequestOp with Product with Serializable
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.
- case class Insert(flags: Int, fullCollectionName: String) extends WriteRequestOp with Product with Serializable
Insert operation.
Insert operation.
- flags
Operation flags.
- case class KillCursors(cursorIDs: Set[Long]) extends RequestOp with Product with Serializable
KillCursors operation.
KillCursors operation.
- cursorIDs
ids of the cursors to kill. Should not be empty.
- case class MessageHeader(messageLength: Int, requestID: Int, responseTo: Int, opCode: Int) extends ChannelBufferWritable with Product with Serializable
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.
- sealed trait Op extends AnyRef
A Mongo Wire Protocol operation
- case class Query(flags: Int, fullCollectionName: String, numberToSkip: Int, numberToReturn: Int) extends CollectionAwareRequestOp with Product with Serializable
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.
- case class Reply(flags: Int, cursorID: Long, startingFrom: Int, numberReturned: Int) extends Op with Product with Serializable
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.
- case class ReplyDocumentIteratorExhaustedException(cause: Exception) extends Exception with Product with Serializable
- sealed trait RequestOp extends Op with ChannelBufferWritable
A Mongo Wire Protocol request operation.
A Mongo Wire Protocol request operation.
Actually, all operations excepted Reply are requests.
- case class Update(fullCollectionName: String, flags: Int) extends WriteRequestOp with Product with Serializable
Update operation.
Update operation.
- flags
Operation flags.
- sealed trait WriteRequestOp extends CollectionAwareRequestOp
A request that will perform a write on the database
Deprecated Type Members
Value Members
- object MessageHeader extends ChannelBufferReadable[MessageHeader] with Serializable
Header deserializer from a ByteBuf.
- object QueryFlags
Query flags.
- object Reply extends ChannelBufferReadable[Reply] with Serializable
- object ReplyDocumentIterator
- object UpdateFlags
Deprecated Value Members
- object Response extends Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 0.16.0) Internal: will be made private
- object ResponseInfo extends AbstractFunction1[ChannelId, ResponseInfo]
- Annotations
- @deprecated
- Deprecated
(Since version 0.16.0) Internal: will be made private