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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. Serializable
  3. Product
  4. Equals
  5. ChannelBufferWritable
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. val channelIdHint: Option[ChannelId]
  2. val documents: BufferSequence
  3. lazy val header: MessageHeader

    Header of this request

  4. val op: RequestOp
  5. def productElementNames: Iterator[String]
    Definition Classes
    Product
  6. val readPreference: ReadPreference
  7. val requestID: Int
  8. val responseTo: Int
  9. def size: Int

    Size of the content that would be written.

    Size of the content that would be written.

    Definition Classes
    RequestChannelBufferWritable
  10. def toString(): String
    Definition Classes
    Request → AnyRef → Any
  11. val writeTo: (ByteBuf) => Unit

    Write this instance into the given ByteBuf.

    Write this instance into the given ByteBuf.

    Definition Classes
    RequestChannelBufferWritable