Plack::App::ServiceStatus::NetStomp - Check Net::Stomp connection
version 0.903
my $stomp = Net::Stomp->new( { hostname => 'localhost', port => '61613' } ); $stomp->connect( { login => 'hello', passcode => 'there' } ); my $status_app = Plack::App::ServiceStatus->new( app => 'your app', NetStomp => $stomp, );
Temporarily reduces the reconnect_attempts to 1, and then starts a new STOMP transaction which is immediately aborted again. If this is successful, the check returns ok, otherwise nok and the exception.
reconnect_attempts
ok
nok
Takes either a Net::Stomp instance (where connect() was already called on) or a code reference which returns such a Net::Stomp instance when called.
connect()
Thomas Klausner <domm@cpan.org>
This software is copyright (c) 2016 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::App::ServiceStatus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::ServiceStatus
CPAN shell
perl -MCPAN -e shell install Plack::App::ServiceStatus
For more information on module installation, please visit the detailed CPAN module installation guide.