| java.lang.Object example.ConnectionImpl
ConnectionImpl | public class ConnectionImpl (Code) | | Implementation of the user's view of the connection. This
class is entirely customizable.
Normally, it will just be a facade to the underlying managed
connection.
|
Method Summary | |
public void | close() Adding a close() method is very important for any
connection API. | public void | finalize() | public String | toString() |
close | public void close()(Code) | | Adding a close() method is very important for any
connection API. It lets Resin know that the user has
closed the connection and Resin can mark the managed connection
as idle and reuse it.
It is also important that the connection let the user call
close() , but only the allow the first close
to have any effect.
In particular, it would be a mistake to call _mConn.close
twice since that would tell Resin that the connection had closed
twice, which might confuse Resin's pool.
|
finalize | public void finalize()(Code) | | |
|
|