NAME

POEIKC::Plugin::GlobalQueue::ClientLite - Synchronous interface

SYNOPSIS

        use Data::Dumper;
        use POEIKC::Plugin::GlobalQueue::ClientLite;

        my $gq = POEIKC::Plugin::GlobalQueue::ClientLite->new(
                ip              => global_queue_server_host_name,
                port    => 47301,
                timeout => 3,
                RaiseError => 1,
        );
        eval {
                $gq->connect;

                my $re = $gq->enqueue(
                        POEIKC::Plugin::GlobalQueue::Capsule->new({foo=>'FOO'})
                );
                $re or die "failed in enqueue";


                print Dumper($gq->length);

                my $data = $gq->dequeue();
                print Dumper($data);

        };if($@){
                warn $@;
        }

AUTHOR

Yuji Suzuki <yujisuzuki@mail.arbolbell.jp>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

poeikcd POEIKC::Plugin::GlobalQueue POEIKC::Plugin::GlobalQueue::Capsule