IPooledConnection.AddConnectionEventListener(IConnectionEventListener) Method

Definition

Registers the given event listener so that it will be notified when an event occurs on this PooledConnection object.

[Android.Runtime.Register("addConnectionEventListener", "(Ljavax/sql/ConnectionEventListener;)V", "GetAddConnectionEventListener_Ljavax_sql_ConnectionEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AddConnectionEventListener (Javax.Sql.IConnectionEventListener? listener);
[<Android.Runtime.Register("addConnectionEventListener", "(Ljavax/sql/ConnectionEventListener;)V", "GetAddConnectionEventListener_Ljavax_sql_ConnectionEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddConnectionEventListener : Javax.Sql.IConnectionEventListener -> unit

Parameters

listener
IConnectionEventListener

a component, usually the connection pool manager, that has implemented the ConnectionEventListener interface and wants to be notified when the connection is closed or has an error

Attributes

Remarks

Registers the given event listener so that it will be notified when an event occurs on this PooledConnection object.

Java documentation for javax.sql.PooledConnection.addConnectionEventListener(javax.sql.ConnectionEventListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to