JournalService class final
The writer of journal, listening on socket.
Properties
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
journalfor the senders insenders, listening onsocket, and for readers onreadSocketwhen it is given. Reads the chains back from the journal, then adds thestartedentry. 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.