Object

spinoco.fs2.kafka.network.BrokerConnection

impl

Related Doc: package BrokerConnection

Permalink

object impl

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collectChunks(in: ByteVector, msgSz: Option[Int]): (ByteVector, Option[Int], Segment[ByteVector, Unit])

    Permalink

    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]]): Pipe[F, ByteVector, ResponseMessage]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def receiveChunks[F[_]]: Pipe[F, Byte, ByteVector]

    Permalink

    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.

  18. def receiveMessages[F[_]](openRequests: Ref[F, Map[Int, RequestMessage]]): Pipe[F, Byte, ResponseMessage]

    Permalink
  19. def sendMessages[F[_]](openRequests: Ref[F, Map[Int, RequestMessage]], sendOne: (Chunk[Byte]) ⇒ F[Unit])(implicit arg0: Applicative[F], F: Monad[F]): Sink[F, RequestMessage]

    Permalink

    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

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped