Class MessageLog
java.lang.Object
org.teamapps.universaldb.index.log.MessageLog
public class MessageLog
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MessageLog(java.io.File basePath, java.lang.String name, boolean rotating, org.teamapps.protocol.file.FileProvider fileProvider, org.teamapps.protocol.file.FileSink fileSink, org.teamapps.protocol.schema.ModelRegistry modelRegistry) -
Method Summary
Modifier and Type Method Description longaddMessage(org.teamapps.protocol.schema.MessageObject message)voidclose()java.util.Iterator<org.teamapps.protocol.schema.MessageObject>getMessages(long startPos)org.teamapps.protocol.schema.MessageObjectreadMessage(long position)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MessageLog
public MessageLog(java.io.File basePath, java.lang.String name, boolean rotating, org.teamapps.protocol.file.FileProvider fileProvider, org.teamapps.protocol.file.FileSink fileSink, org.teamapps.protocol.schema.ModelRegistry modelRegistry)
-
-
Method Details
-
addMessage
public long addMessage(org.teamapps.protocol.schema.MessageObject message) throws java.io.IOException- Throws:
java.io.IOException
-
readMessage
public org.teamapps.protocol.schema.MessageObject readMessage(long position) throws java.io.IOException- Throws:
java.io.IOException
-
getMessages
public java.util.Iterator<org.teamapps.protocol.schema.MessageObject> getMessages(long startPos) -
close
public void close()
-