Package net.sf.colossus.webserver
Class ChatMsgStorage
java.lang.Object
net.sf.colossus.webserver.ChatMsgStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatChannel
private final List<ChatMessage>
private static final Logger
private final WebServerOptions
private static final String
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". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
makeLine
(ChatMessage msg) private void
parseMsgLine
(String line) private void
(package private) void
storeMessage
(ChatMessage msg) private void
Store 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
-