new

bus

The event bus used by this instance.

name

item_by_id

key_for_id

bytes_used

validate_id_for_item_data

EVENTS

The following events may be raised on the message bus used by this class - use "subscribe_to_event" in Mixin::Event::Dispatch to watch for them:

 $srv->bus->subscribe_to_event(
   list_tables => sub {
     my ($ev, $tables, $req, $resp) = @_;
	 ...
   }
 );

Note that most of these include a Future - the event is triggered once the Future is marked as ready, so it should be safe to call get to examine the current state:

 $srv->bus->subscribe_to_event(
   create_table => sub {
     my ($ev, $tbl, $req, $resp) = @_;
	 warn "Had a failed table creation request" unless eval { $resp->get };
   }
 );

AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

LICENSE

Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.