Packages

object impl

Source
BrokerConnection.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. impl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def collectChunks(in: ByteVector, msgSz: Option[Int]): (ByteVector, Option[Int], Chunk[ByteVector])

    Collects chunks of messages received.

    Collects chunks of messages received. Each chunk is forming whole message, that means this looks for the first 4 bytes, that indicates message size, then this take up to that size to produce single ByteVector of message content, and emits that content it term of Segment. Note that Segment may be empty or may contain multiple characters

  7. def decodeReceived[F[_]](openRequests: Ref[F, Map[Int, RequestMessage]])(implicit arg0: RaiseThrowable[F]): Pipe[F, ByteVector, ResponseMessage]

    Decodes message received.

    Decodes message received. Due to kafka protocol not having response type encoded in protocol itself, we need to consult correlation id, that is read first from the message to identify response type.

    If request is found for given message, this will remove that request from supplied map and will deserialize message according the request type.

    If request cannot be found, this fails, as well as when message cannot be decoded.

    openRequests

    Ref of current open requests.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. def receiveChunks[F[_]](implicit arg0: RaiseThrowable[F]): Pipe[F, Byte, ByteVector]

    Collects bytes as they arrive producing chunks of ByteVector This reads 32 bits size first, then it reads up to that size of message data emitting single ByteVector.

    Collects bytes as they arrive producing chunks of ByteVector This reads 32 bits size first, then it reads up to that size of message data emitting single ByteVector.

    This combinator respects chunks. So if there was more chunks collected in single go, they all are emitted in chunk.

  17. def receiveMessages[F[_]](openRequests: Ref[F, Map[Int, RequestMessage]])(implicit arg0: Async[F]): Pipe[F, Byte, ResponseMessage]
  18. def sendMessages[F[_]](openRequests: Ref[F, Map[Int, RequestMessage]], sendOne: (Chunk[Byte]) => F[Unit])(implicit arg0: Applicative[F], arg1: RaiseThrowable[F]): Pipe[F, RequestMessage, Nothing]

    Pipe that will send one message with sendOne shile updating the openRequests.

    Pipe that will send one message with sendOne shile updating the openRequests. The openRequests or not updated for ProduceRequests that do not expect confirmation from kafka

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped