The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OP::RRNode - Circular "Round Robin" Table Rows

DESCRIPTION

Abstract implementation of a circular FIFO object class.

The DB table for a FIFO subclass will never grow beyond the limit set by the subclass's __numRows variable. When the row limit is reached, the oldest rows in the database will begin to be overwritten.

Suitable applications for subclasses include event logging, message queueing, and RRD-style data collection.

INHERITANCE

This class inherits additional class and object methods from the following packages:

OP::Class > OP::Object > OP::Hash > OP::Node > OP::RRNode

SYNOPSIS

  use strict;
  use warnings;

  use OP::Class;

  create "OP::RRExample" => {
    __BASE__  => "OP::RRNode",
    __numRows => 250000
  }

SEE ALSO

This file is part of OP.