|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RolloverStrategy
A strategy interface used for file or stream writers to determine when a file or a stream should be rolled over. Usual use case is to roll if file size becomes too large or if written entries should be partitioned with a certain time slots.
| Method Summary | |
|---|---|
boolean |
hasRolled()
Checks if strategy wants to rollover. |
void |
reset()
Reset the strategy state. |
void |
setWritePosition(long position)
Sets the write position. |
| Method Detail |
|---|
boolean hasRolled()
void reset()
void setWritePosition(long position)
position - the new write position
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||