LogbookService class final
The writer of logbook, listening on socket.
Properties
Methods
-
close(
) → Future< void> - Stops listening, ends its subscribers, removes the sockets and closes the logbook.
-
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(
Logbook logbook, SenderTable senders, File socket, {File? readSocket, UserId? uidOf(String user) = _uidOfUser, SocketUserReader? socketUserReader}) → Future< LogbookService> -
Starts writing
logbookfor the senders insenders, listening onsocket, and for readers onreadSocketwhen it is given. Reads the chains back from the logbook, then adds thestartedentry. Throws a StateError when another service is listening on either socket; a socket file nothing listens on is replaced.uidOffinds the users ausers-assigned-to-trajectorynames, as SenderTable.parse's does.socketUserReaderreads who is on the other end ofsocket, the running kernel's reader by default.
Constants
- maxRequest → const int
- The largest request it reads, in bytes.