protected static class UartbusLogFile.LogRotaOutput<T,L> extends Object
Modifier and Type | Field and Description |
---|---|
protected T |
currentLogOutput |
protected eu.javaexperience.interfaces.simple.getBy.GetBy1<Long,Integer> |
getCutTimeByOffset |
protected eu.javaexperience.interfaces.simple.publish.SimplePublish2<T,L> |
log |
protected long |
nextCutTime |
protected eu.javaexperience.interfaces.simple.getBy.GetBy1<T,File> |
openLogFile |
protected String |
postfix |
protected String |
prefix |
Constructor and Description |
---|
LogRotaOutput(String prefix,
String postfix,
eu.javaexperience.interfaces.simple.getBy.GetBy1<Long,Integer> getCutTimeByOffset,
eu.javaexperience.interfaces.simple.getBy.GetBy1<T,File> openLogFile,
eu.javaexperience.interfaces.simple.publish.SimplePublish2<T,L> log) |
Modifier and Type | Method and Description |
---|---|
T |
getLogWriter() |
void |
log(L entry) |
protected boolean |
needCut() |
protected T |
openNextLogUnit() |
protected String prefix
protected String postfix
protected eu.javaexperience.interfaces.simple.getBy.GetBy1<Long,Integer> getCutTimeByOffset
protected T currentLogOutput
protected long nextCutTime
protected boolean needCut()
public void log(L entry) throws IOException
IOException
public T getLogWriter() throws IOException
IOException
protected T openNextLogUnit()
Copyright © 2020. All rights reserved.