org.jboss.jca.core.api.connectionmanager.pool
Interface Pool


public interface Pool

A pool.

Author:
Jesper Pedersen

Method Summary
 void flush()
          Flush idle connections from the pool
 void flush(boolean kill)
          Flush the pool
 String getName()
          Gets pool name.
 PoolStatistics getStatistics()
          Get the statistics
 boolean testConnection()
          Test if a connection can be obtained
 

Method Detail

getName

String getName()
Gets pool name.

Returns:
pool name

flush

void flush()
Flush idle connections from the pool


flush

void flush(boolean kill)
Flush the pool

Parameters:
kill - Kill all connections

testConnection

boolean testConnection()
Test if a connection can be obtained

Returns:
True if it was poosible to get a connection; otherwise false

getStatistics

PoolStatistics getStatistics()
Get the statistics

Returns:
The value


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)