David Golden

NAME

Dancer::Plugin::Queue::Array - No abstract given for Dancer::Plugin::Queue::Array

VERSION

version 0.002

SYNOPSIS

  # in dancer config.yml
  
  queue:
    default:
      class: Array
      options:
        name: test

DESCRIPTION

This module provides a trivial, single-process, in-memory queue for testing.

ATTRIBUTES

name

The name attribute does nothing useful, but it's required in order to test how options are passed to queue implementations

METHODS

add_msg

  $queue->add_msg( $data );

Enqueues $data as a message.

get_msg

  my ($msg, $data) = $queue->get_msg;

Dequeues a message.

remove_msg

  $queue->remove_msg( $msg );

Usually would remove a message from the queue as deleted, but for this demo class, does nothing, since get_msg already removed it.

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004