1 package DBIx::Class::Storage::DBI::Replicated::Balancer::First;
4 with 'DBIx::Class::Storage::DBI::Replicated::Balancer';
8 DBIx::Class::Storage::DBI::Replicated::Balancer::First - Just get the First Balancer
12 This class is used internally by L<DBIx::Class::Storage::DBI::Replicated>. You
13 shouldn't need to create instances of this class.
17 Given a pool (L<DBIx::Class::Storage::DBI::Replicated::Pool>) of replicated
18 database's (L<DBIx::Class::Storage::DBI::Replicated::Replicant>), defines a
19 method by which query load can be spread out across each replicant in the pool.
21 This Balancer just get's whatever is the first replicant in the pool
25 This class defines the following attributes.
29 This class defines the following methods.
33 Just get the first storage. Probably only good when you have one replicant.
38 return (shift->pool->active_replicants)[0];
43 John Napiorkowski <john.napiorkowski@takkle.com>
47 You may distribute this code under the same terms as Perl itself.
51 __PACKAGE__->meta->make_immutable;