avokka.velocystream

Members list

Type members

Classlikes

final case class VStreamChunk(header: VStreamChunkHeader, data: ByteVector)

chunk of message

chunk of message

Value parameters

data

chunk payload

header

header to reassemble message

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object VStreamChunk.type
Self type
final case class VStreamChunkHeader(x: VStreamChunkX, id: Long, length: Long)

header of chunk

header of chunk

Value parameters

id

unique message identifier

length

total size of message in bytes

x

chunkx

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final class VStreamChunkX(val x: Long) extends AnyVal

ChunkX chunk/isFirstChunk (upper 31bits/lowest bit)

ChunkX chunk/isFirstChunk (upper 31bits/lowest bit)

"chunk" and "isFirstChunk" are combined into an unsigned 32bit value

chunk = chunkX >> 1 isFirstChunk = chunkX & 0x1

For the first chunk of a message, the low bit of the second uint32_t is set, for all subsequent ones it is reset. In the first chunk of a message, the number "chunk" is the total number of chunks in the message, in all subsequent chunks, the number "chunk" is the current number of this chunk.

Attributes

Companion
object
Supertypes
class AnyVal
trait Matchable
class Any
object VStreamChunkX

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class VStreamClient(conf: VStreamConfiguration, begin: Iterable[VStreamMessage]) extends Actor, Stash, ActorLogging

Velocystream client actor

Velocystream client actor

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Stash
trait RequiresMessageQueue[DequeBasedMessageQueueSemantics]
trait UnrestrictedStash
trait Actor
class Object
trait Matchable
class Any
Show all
object VStreamClient

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class VStreamConnection(conf: VStreamConfiguration, begin: Iterable[VStreamMessage]) extends Actor, ActorLogging

Velocystream TCP connection

Velocystream TCP connection

Value parameters

begin

first messages to send (authorization for example)

conf

configuration

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final case class VStreamMessage(id: Long, data: ByteVector)

velocystream message in or out

velocystream message in or out

Value parameters

data

data bytes

id

unique identifier

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class VStreamMessageActor(id: Long, replyTo: ActorRef) extends Actor, ActorLogging

actor waiting for chunks from server and reply with complete message

actor waiting for chunks from server and reply with complete message

Value parameters

id

message id

replyTo

actor which sent the request

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class VStreamReader() extends Actor, ActorLogging

velocystream connection reader handles Tcp.Received events, accumulates bitvector and tries to decodes chunks, then send those chunks to message actor children

velocystream connection reader handles Tcp.Received events, accumulates bitvector and tries to decodes chunks, then send those chunks to message actor children

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
object VStreamReader

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type