ChannelBufferPublisher#

class ChannelBufferPublisher(maxlen: int)[source]#

Bases: ABC

Base class for channel buffer publishers that store measurements in memory.

Attributes

channel_names

Return an insertion-ordered snapshot of all channel names currently in the buffer.

size_bytes

Return the current memory in bytes.

Methods

close

Close the publisher and clear all buffers with thread synchronization.

get

Return the trailing length samples for channel_name.

publish

Publish measurement data to the buffers with thread synchronization.