Class ChatMsgStorage
java.lang.Object
net.sf.colossus.webserver.ChatMsgStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatChannelprivate final List<ChatMessage> private static final Loggerprivate final WebServerOptionsprivate static final StringJust by coincidence, we use the same separator as for the network transmissions, so then there is no risk of "can't be unambiguely encoded". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()makeLine(ChatMessage msg) private voidparseMsgLine(String line) private void(package private) voidstoreMessage(ChatMessage msg) private voidStore all messages to a permanent storage (Disk file or DB) from where they can be read back when server is restarting
-
Field Details
-
LOGGER
-
options
-
channel
-
lastNChatMessages
-
SEP
Just by coincidence, we use the same separator as for the network transmissions, so then there is no risk of "can't be unambiguely encoded".- See Also:
-
-
Constructor Details
-
ChatMsgStorage
-
-
Method Details
-
dispose
public void dispose() -
getChannel
-
getLastNChatMessages
-
storeMessage
-
storeMessages
private void storeMessages()Store all messages to a permanent storage (Disk file or DB) from where they can be read back when server is restarting -
restoreMessages
private void restoreMessages() -
makeLine
-
parseMsgLine
-