case class Request(requestID: Int, responseTo: Int, op: RequestOp, documents: BufferSequence, readPreference: ReadPreference = ReadPreference.primary, channelIdHint: Option[ChannelId] = None) extends ChannelBufferWritable with Product with Serializable
Request message.
- requestID
the ID of this request, so that the response may be identifiable. Should be strictly positive.
- op
request operation.
- documents
body of this request, a ByteBuf containing 0, 1, or many documents.
- channelIdHint
a hint for sending this request on a particular channel.
- Annotations
- @deprecated
- Deprecated
(Since version 0.20.3) Internal: will be made private
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Request
- Serializable
- Product
- Equals
- ChannelBufferWritable
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Request(requestID: Int, responseTo: Int, op: RequestOp, documents: BufferSequence, readPreference: ReadPreference = ReadPreference.primary, channelIdHint: Option[ChannelId] = None)
- requestID
the ID of this request, so that the response may be identifiable. Should be strictly positive.
- op
request operation.
- documents
body of this request, a ByteBuf containing 0, 1, or many documents.
- channelIdHint
a hint for sending this request on a particular channel.
Value Members
- val channelIdHint: Option[ChannelId]
- val documents: BufferSequence
- lazy val header: MessageHeader
Header of this request
- val op: RequestOp
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val readPreference: ReadPreference
- val requestID: Int
- val responseTo: Int
- def size: Int
Size of the content that would be written.
Size of the content that would be written.
- Definition Classes
- Request → ChannelBufferWritable
- def toString(): String
- Definition Classes
- Request → AnyRef → Any
- val writeTo: (ByteBuf) => Unit
Write this instance into the given ByteBuf.
Write this instance into the given ByteBuf.
- Definition Classes
- Request → ChannelBufferWritable