tuweni / org.apache.tuweni.scuttlebutt.lib / FeedService

FeedService

class FeedService (source)

A service for operations that concern scuttlebutt feeds. Should be accessed via a ScuttlebuttClient instance.

Functions

createFeedStream

Streams every message in the instance's database.

fun createFeedStream(streamHandler: Function<Runnable!, StreamHandler<FeedMessage!>!>!): Unit

publish

Publishes a message to the instance's own scuttlebutt feed, assuming the client established the connection using keys authorising it to perform this operation.

fun <T : ScuttlebuttMessageContent!> publish(content: T): AsyncResult<FeedMessage!>!