Class AppendLogFile
java.lang.Object
com.swiftmq.impl.store.standard.log.AppendLogFile
- All Implemented Interfaces:
LogFile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush
(boolean sync) getFile()
int
long
void
init
(long maxSize) boolean
void
reset
(boolean sync) void
reset
(boolean sync, DataOutput copyHere) void
setInMemoryMode
(boolean inMemoryMode) toString()
void
void
write
(LogRecord logRecord, DataOutput copyHere)
-
Constructor Details
-
AppendLogFile
-
-
Method Details
-
setInMemoryMode
public void setInMemoryMode(boolean inMemoryMode) - Specified by:
setInMemoryMode
in interfaceLogFile
-
isInMemoryMode
public boolean isInMemoryMode()- Specified by:
isInMemoryMode
in interfaceLogFile
-
init
public void init(long maxSize) -
getFile
-
getFlushSize
public int getFlushSize()- Specified by:
getFlushSize
in interfaceLogFile
-
getPosition
public long getPosition()- Specified by:
getPosition
in interfaceLogFile
-
write
- Specified by:
write
in interfaceLogFile
- Throws:
IOException
-
write
- Specified by:
write
in interfaceLogFile
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceLogFile
- Throws:
IOException
-
reset
- Specified by:
reset
in interfaceLogFile
- Throws:
IOException
-
reset
- Specified by:
reset
in interfaceLogFile
- Throws:
IOException
-
toString
-