},
);
+=head2 pool_args
+
+Contains a hashref of initialized information to pass to the Balancer object.
+See L<DBIx::Class::Storage::Replicated::Pool> for available arguments.
+
+=cut
+
+has 'pool_args' => (
+ is=>'ro',
+ isa=>'HashRef',
+ lazy=>1,
+ required=>1,
+ default=>sub { {} },
+);
+
+
=head2 balancer_type
The replication pool requires a balance class to provider the methods for
=head2 balancer_args
Contains a hashref of initialized information to pass to the Balancer object.
-See L<DBIx::Class::Storage::Replicated::Pool> for available arguments.
+See L<DBIx::Class::Storage::Replicated::Balancer> for available arguments.
=cut
has 'balancer_args' => (
is=>'ro',
isa=>'HashRef',
+ lazy=>1,
+ required=>1,
+ default=>sub { {} },
);
=head2 pool
sub _build_pool {
my $self = shift @_;
- $self->create_pool;
+ $self->create_pool(%{$self->pool_args});
}
=head2 _build_balancer_type