activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r825261 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs
Date Wed, 14 Oct 2009 20:23:11 GMT
Author: tabish
Date: Wed Oct 14 20:23:10 2009
New Revision: 825261

URL: http://svn.apache.org/viewvc?rev=825261&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-172

Adds ConnectionInterrupted and ConnectionResumed events to the IConnection interface.  Clients
will need to implement these and notify a client when a fault tolerant connection with a broker
is broken / restored.  If the client doesn't provide fault tolerant connections then it is
not required to send any notifications on these events.

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs?rev=825261&r1=825260&r2=825261&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/IConnection.cs Wed Oct 14 20:23:10
2009
@@ -59,7 +59,18 @@
 	/// </summary>
 	public delegate void ExceptionListener(Exception exception);
 
-
+    /// <summary>
+    /// A delegate that is used by Fault tolerant NMS Implementation to notify their
+    /// clients that the Connection is not currently active to due some error.  
+    /// </summary>
+    public delegate void ConnectionInterruptedListener();
+
+    /// <summary>
+    /// A delegate that is used by Fault tolerant NMS Implementation to notify their
+    /// clients that the Connection that was interrupted has now been restored.  
+    /// </summary>
+    public delegate void ConnectionResumedListener();
+    
 	/// <summary>
 	/// Represents a connection with a message broker
 	/// </summary>
@@ -85,6 +96,18 @@
 		/// </summary>
 		event ExceptionListener ExceptionListener;
 
+        /// <summary>
+        /// An asynchronous listener that is notified when a Fault tolerant connection
+        /// has been interrupted.
+        /// </summary>
+        event ConnectionInterruptedListener ConnectionInterruptedListener;
+
+        /// <summary>
+        /// An asynchronous listener that is notified when a Fault tolerant connection
+        /// has been resumed.
+        /// </summary>
+        event ConnectionResumedListener ConnectionResumedListener;
+        
 		#region Attributes
 
 		/// <summary>



Mime
View raw message