discontinuedPackage is_journal has been discontinued and replaced by is_logbook.

JournalService class final

The writer of journal, listening on socket.

Properties

hashCode → int
The hash code for this object.
no setterinherited
journal → Journal
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Stops listening, ends its subscribers, removes the sockets and closes the journal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

start(Journal journal, SenderTable senders, File socket, {File? readSocket}) → Future<JournalService>
Starts writing journal for the senders in senders, listening on socket, and for readers on readSocket when it is given. Reads the chains back from the journal, then adds the started entry. Throws a StateError when another service is listening on either socket; a socket file nothing listens on is replaced.

Constants

maxRequest → const int
The largest request it reads, in bytes.