|$path_to_jlog||The directory for the JLog queue.|
|$flags||Optional flags, from Fcntl. The default is O_CREAT.|
|$size||Optional size of the individual journal files.|
These functions are inherited from JLog
$w->add_subscriber( $name, [ $flag ] );
Add a subscriber to the JLog queue.
$name The name of the subscriber. $flag An optional flag dictating where the subscriber should be marked interested from. The default is JLog::JLOG_BEGIN. The other available option is JLog::JLOG_END.
$w->remove_subscriber ( $name );
Remove a subscriber to the JLog queue.
$name The name of the subscriber.
$w->open( $subscriber_name );
Opens the JLog for reading.
$subscriber_name The name we want to subscribe under. This must previously have been registered as a log subscriber via add_subscriber().
$message = $w->read;
Read the next message from the JLog queue.
Checkpoint your read. This will notify the JLog that you have successfully read logs up to this point. If all registered subscribers have read to a certain point, the JLog system can remove the underlying data for the read messages.
auto_checkpoint( [ CW$val ] )Returns (and optionally sets) the auto_checkpoint property. With auto-checkpointing enabled, JLog::Reader will automatically checkpoint whenever you call read().
$val The value you wish to set auto_checkpointing to.
$r->alter_journal_size( $size );
Set the size of the individual journal files.
$size The desired size in bytes.
$size = $r->raw_size;
The size of the existing journal (including checkpointed but unpurged messages in the current journal file), in bytes.
Rewind the jlog to the previous transaction id (when in an uncommitted state). This is useful for implementing a peek style action.
Copyright (C) 2006-2008 by Message Systems, Inc.
Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 181: Unknown directive: =head Around line 188: =back without =over
|perl v5.20.3||JLOG::READER (3)||2015-01-22|