14 lines
1.0 KiB
Plaintext
14 lines
1.0 KiB
Plaintext
PubTableBroker allows publishing of streams through createTable, addRow, deleteRow, changeRow, makeBatchChanges ->
|
|
PubTablePublisher:IPubTablePublisher per tag (addRow, deleteRow, changeRow, createTable, batchRemoveAdd)
|
|
PubTablePublisher has BlueDataSerializationController:IBlueDataSerializer to serialize the rows to byte[]
|
|
BlueDataSerializationController uses a IBlueDataSerializer, which is specialized for the tag (using UniversalSerializer for now)
|
|
|
|
IBlueDataSerializer has just one function
|
|
void serialize (byte op, IBlueRowCollection[] rows, out byte[] serializedData);
|
|
the second arg is IBlueRowCollection[] because in case of op = StreamOpCode.multipleRemoveAdd, it has multiple IBlueRowCollection for rem and add
|
|
(BlueDataSerializer.serialize's comment has the serialization layout)
|
|
|
|
For each serializer we have 2 matching deserializers, IPubsubDeserializer (for PubSubservr) and IClientDeserializer (for clients subscribing to streams)
|
|
For UniversalSerializer, we have PubsubUniversalDeserializer and ClientUniversalDeserializer
|
|
|