use ResourcePool::Resource; my $resource = ResourcePool::Resource->new();
Each ResourcePool::Resource class gets constructed by the corresponding ResourcePool::Factory class. In fact the Factory classes are just used to store the parameters which are required to construct a resource.
Closes a connection gracefully.Returns: undef
Closes a failed connection and ignores error (since this connection is known to be broken)Returns: undef
Checks a connection. This method is called by the get() method of the ResourcePool before it returns a connection. The default implementation always returns true.Returns: true if the connection is valid
Checks a connection. This method is called by the free() method of the ResourcePool to check if a connection is still valid. The default implementation always returns true.Returns: true if the connection is valid
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.