and 2 contributors
NAME
Log::Unrotate::Cursor - abstract class for unrotate cursors
VERSION
version 1.32
DECRIPTION
Log::Unrotate
keeps its position in persistent objects called cursors.
See Log::Unrotate::Cursor::File
for the default cursor implementation.
METHODS
- read()
-
Get the hashref with a position data.
Data usually includes Position, Inode, LastLine and LogFile keys.
- commit($position)
-
Save a new position into the cursor.
- clean()
-
Clean all data from the cursor.
- rollback()
-
Rollback the cursor to some previous value.
Returns 1 on success, 0 on fail.