mirror of https://github.com/apache/activemq.git
Fixed up some comments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383314 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f8bfee0be
commit
bfe91884be
|
@ -17,13 +17,12 @@
|
|||
using ActiveMQ.Commands;
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Exception thrown when the broker returns an error
|
||||
/// </summary>
|
||||
|
||||
namespace ActiveMQ
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Exception thrown when the broker returns an error
|
||||
/// </summary>
|
||||
public class BrokerException : JMSException
|
||||
{
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
using ActiveMQ.Commands;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for AbstractCommand.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for AbstractCommand.
|
||||
/// </summary>
|
||||
public abstract class AbstractCommand : Command
|
||||
{
|
||||
private short commandId;
|
||||
|
|
|
@ -17,14 +17,12 @@
|
|||
using ActiveMQ.Commands;
|
||||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQDestination.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQDestination.
|
||||
/// </summary>
|
||||
public abstract class ActiveMQDestination : AbstractCommand, IDestination
|
||||
{
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@ using ActiveMQ.Commands;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQQueue.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQQueue.
|
||||
/// </summary>
|
||||
public class ActiveMQQueue : ActiveMQDestination, IQueue
|
||||
{
|
||||
public const byte ID_ActiveMQQueue = 100;
|
||||
|
|
|
@ -18,12 +18,12 @@ using ActiveMQ.Commands;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A Temporary Queue
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Temporary Queue
|
||||
/// </summary>
|
||||
public class ActiveMQTempQueue : ActiveMQTempDestination, ITemporaryQueue
|
||||
{
|
||||
public const byte ID_ActiveMQTempQueue = 102;
|
||||
|
|
|
@ -18,12 +18,12 @@ using ActiveMQ.Commands;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A Temporary Topic
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Temporary Topic
|
||||
/// </summary>
|
||||
public class ActiveMQTempTopic : ActiveMQTempDestination, ITemporaryTopic
|
||||
{
|
||||
public const byte ID_ActiveMQTempTopic = 103;
|
||||
|
|
|
@ -18,12 +18,12 @@ using ActiveMQ.Commands;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQTopic.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ActiveMQTopic.
|
||||
/// </summary>
|
||||
public class ActiveMQTopic : ActiveMQDestination, ITopic
|
||||
{
|
||||
public const byte ID_ActiveMQTopic = 101;
|
||||
|
|
|
@ -28,14 +28,10 @@ namespace ActiveMQ.Commands
|
|||
public string MethodName;
|
||||
public int LineNumber;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents an exception on the broker
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an exception on the broker
|
||||
/// </summary>
|
||||
public class BrokerError : AbstractCommand
|
||||
{
|
||||
private string message;
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using ActiveMQ.Commands;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An OpenWire command
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// An OpenWire command
|
||||
/// </summary>
|
||||
public interface Command : DataStructure
|
||||
{
|
||||
short CommandId
|
||||
|
|
|
@ -14,14 +14,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An OpenWire command
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// An OpenWire command
|
||||
/// </summary>
|
||||
public interface DataStructure
|
||||
{
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using ActiveMQ.Commands;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for DataStructureSupport.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for DataStructureSupport.
|
||||
/// </summary>
|
||||
public abstract class DataStructureSupport : DataStructure
|
||||
{
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using ActiveMQ.OpenWire;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a marshallable entity
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Commands
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a marshallable entity
|
||||
/// </summary>
|
||||
public interface MarshallAware
|
||||
{
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Handles the multi-threaded dispatching between the transport and the consumers
|
||||
/// </summary>
|
||||
namespace ActiveMQ
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Handles the multi-threaded dispatching between the transport and the consumers
|
||||
/// </summary>
|
||||
public class Dispatcher
|
||||
{
|
||||
Queue queue = new Queue();
|
||||
|
|
|
@ -18,12 +18,12 @@ using ActiveMQ.Commands;
|
|||
using System;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Handles asynchronous responses
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Handles asynchronous responses
|
||||
/// </summary>
|
||||
public class FutureResponse : IAsyncResult
|
||||
{
|
||||
|
||||
|
|
|
@ -19,14 +19,14 @@ using ActiveMQ.Transport;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the logical networking transport layer.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
public delegate void CommandHandler(ITransport sender, Command command);
|
||||
public delegate void ExceptionHandler(ITransport sender, Exception command);
|
||||
|
||||
/// <summary>
|
||||
/// Represents the logical networking transport layer.
|
||||
/// </summary>
|
||||
public interface ITransport : IStartable, IDisposable
|
||||
{
|
||||
void Oneway(Command command);
|
||||
|
@ -35,12 +35,12 @@ namespace ActiveMQ.Transport
|
|||
|
||||
Response Request(Command command);
|
||||
|
||||
CommandHandler Command{
|
||||
CommandHandler Command {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
ExceptionHandler Exception{
|
||||
ExceptionHandler Exception {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
|
|
@ -19,11 +19,12 @@ using ActiveMQ.Transport;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// A Transport filter that is used to log the commands sent and received.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Transport filter that is used to log the commands sent and received.
|
||||
/// </summary>
|
||||
public class LoggingTransport : TransportFilter
|
||||
{
|
||||
public LoggingTransport(ITransport next) : base(next) {
|
||||
|
@ -31,12 +32,12 @@ namespace ActiveMQ.Transport
|
|||
|
||||
protected override void OnCommand(ITransport sender, Command command) {
|
||||
Console.WriteLine("RECEIVED: " + command);
|
||||
this.command(sender, command);
|
||||
this.commandHandler(sender, command);
|
||||
}
|
||||
|
||||
protected override void OnException(ITransport sender, Exception error) {
|
||||
Console.WriteLine("RECEIVED Exception: " + error);
|
||||
this.exception(sender, error);
|
||||
this.exceptionHandler(sender, error);
|
||||
}
|
||||
|
||||
public override void Oneway(Command command)
|
||||
|
|
|
@ -19,11 +19,12 @@ using ActiveMQ.Transport;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// A Transport which gaurds access to the next transport using a mutex.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Transport which gaurds access to the next transport using a mutex.
|
||||
/// </summary>
|
||||
public class MutexTransport : TransportFilter
|
||||
{
|
||||
|
||||
|
|
|
@ -22,11 +22,12 @@ using ActiveMQ.Commands;
|
|||
using ActiveMQ.Transport;
|
||||
using JMS;
|
||||
|
||||
/// <summary>
|
||||
/// A Transport which gaurds access to the next transport using a mutex.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Transport which gaurds access to the next transport using a mutex.
|
||||
/// </summary>
|
||||
public class ResponseCorrelator : TransportFilter
|
||||
{
|
||||
|
||||
|
@ -86,7 +87,7 @@ namespace ActiveMQ.Transport
|
|||
{
|
||||
ExceptionResponse er = (ExceptionResponse) response;
|
||||
BrokerError brokerError = er.Exception;
|
||||
this.exception(this, new BrokerException(brokerError));
|
||||
this.exceptionHandler(this, new BrokerException(brokerError));
|
||||
}
|
||||
future.Response = response;
|
||||
}
|
||||
|
@ -95,7 +96,7 @@ namespace ActiveMQ.Transport
|
|||
Console.WriteLine("ERROR: Unknown response ID: " + response.CommandId + " for response: " + response);
|
||||
}
|
||||
} else {
|
||||
this.command(sender, command);
|
||||
this.commandHandler(sender, command);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,14 +25,12 @@ using System.Net;
|
|||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An implementation of ITransport that uses sockets to communicate with the broker
|
||||
/// </summary>
|
||||
|
||||
namespace ActiveMQ.Transport.Tcp
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// An implementation of ITransport that uses sockets to communicate with the broker
|
||||
/// </summary>
|
||||
public class TcpTransport : ITransport
|
||||
{
|
||||
private Socket socket;
|
||||
|
@ -43,8 +41,8 @@ namespace ActiveMQ.Transport.Tcp
|
|||
private bool started;
|
||||
volatile private bool closed;
|
||||
|
||||
public CommandHandler command;
|
||||
public ExceptionHandler exception;
|
||||
private CommandHandler commandHandlerHandlerHandlerHandlerHandler;
|
||||
private ExceptionHandler exceptionHandler;
|
||||
|
||||
public TcpTransport(Socket socket)
|
||||
{
|
||||
|
@ -58,9 +56,9 @@ namespace ActiveMQ.Transport.Tcp
|
|||
{
|
||||
if (!started)
|
||||
{
|
||||
if( command == null )
|
||||
if( commandHandlerHandlerHandlerHandlerHandler == null )
|
||||
throw new InvalidOperationException ("command cannot be null when Start is called.");
|
||||
if( exception == null )
|
||||
if( exceptionHandler == null )
|
||||
throw new InvalidOperationException ("exception cannot be null when Start is called.");
|
||||
|
||||
started = true;
|
||||
|
@ -110,7 +108,7 @@ namespace ActiveMQ.Transport.Tcp
|
|||
try
|
||||
{
|
||||
Command command = (Command) wireformat.Unmarshal(socketReader);
|
||||
this.command(this, command);
|
||||
this.commandHandlerHandlerHandlerHandlerHandler(this, command);
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
|
@ -118,7 +116,7 @@ namespace ActiveMQ.Transport.Tcp
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
this.exception(this,e);
|
||||
this.exceptionHandler(this,e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -129,13 +127,13 @@ namespace ActiveMQ.Transport.Tcp
|
|||
// Implementation methods
|
||||
|
||||
public CommandHandler Command {
|
||||
get { return command; }
|
||||
set { this.command = value; }
|
||||
get { return commandHandlerHandlerHandlerHandlerHandler; }
|
||||
set { this.commandHandlerHandlerHandlerHandlerHandler = value; }
|
||||
}
|
||||
|
||||
public ExceptionHandler Exception {
|
||||
get { return exception; }
|
||||
set { this.exception = value; }
|
||||
get { return exceptionHandler; }
|
||||
set { this.exceptionHandler = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,16 +19,17 @@ using ActiveMQ.Transport;
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Used to implement a filter on the transport layer.
|
||||
/// </summary>
|
||||
namespace ActiveMQ.Transport
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Used to implement a filter on the transport layer.
|
||||
/// </summary>
|
||||
public class TransportFilter : ITransport
|
||||
{
|
||||
protected readonly ITransport next;
|
||||
protected CommandHandler command;
|
||||
protected ExceptionHandler exception;
|
||||
protected CommandHandler commandHandler;
|
||||
protected ExceptionHandler exceptionHandler;
|
||||
|
||||
public TransportFilter(ITransport next) {
|
||||
this.next = next;
|
||||
|
@ -37,11 +38,11 @@ namespace ActiveMQ.Transport
|
|||
}
|
||||
|
||||
protected virtual void OnCommand(ITransport sender, Command command) {
|
||||
this.command(sender, command);
|
||||
this.commandHandler(sender, command);
|
||||
}
|
||||
|
||||
protected virtual void OnException(ITransport sender, Exception command) {
|
||||
this.exception(sender, command);
|
||||
this.exceptionHandler(sender, command);
|
||||
}
|
||||
|
||||
|
||||
|
@ -79,9 +80,9 @@ namespace ActiveMQ.Transport
|
|||
/// </summary>
|
||||
public virtual void Start()
|
||||
{
|
||||
if( command == null )
|
||||
if( commandHandler == null )
|
||||
throw new InvalidOperationException ("command cannot be null when Start is called.");
|
||||
if( exception == null )
|
||||
if( exceptionHandler == null )
|
||||
throw new InvalidOperationException ("exception cannot be null when Start is called.");
|
||||
this.next.Start();
|
||||
}
|
||||
|
@ -95,13 +96,13 @@ namespace ActiveMQ.Transport
|
|||
}
|
||||
|
||||
public CommandHandler Command {
|
||||
get { return command; }
|
||||
set { this.command = value; }
|
||||
get { return commandHandler; }
|
||||
set { this.commandHandler = value; }
|
||||
}
|
||||
|
||||
public ExceptionHandler Exception {
|
||||
get { return exception; }
|
||||
set { this.exception = value; }
|
||||
get { return exceptionHandler; }
|
||||
set { this.exceptionHandler = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a binary based message
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a binary based message
|
||||
/// </summary>
|
||||
public interface IBytesMessage : IMessage
|
||||
{
|
||||
|
||||
|
|
|
@ -16,13 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A Factory of IConnection objects
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A Factory of IConnection objects
|
||||
/// </summary>
|
||||
public interface IConnectionFactory
|
||||
{
|
||||
|
||||
|
|
|
@ -14,14 +14,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for Destination.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for Destination.
|
||||
/// </summary>
|
||||
public interface IDestination
|
||||
{
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a Map message which contains key and value pairs which are
|
||||
/// of primitive types
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a Map message which contains key and value pairs which are
|
||||
/// of primitive types
|
||||
/// </summary>
|
||||
public interface IMapMessage : IMessage
|
||||
{
|
||||
IPrimitiveMap Body
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a message either to be sent to a message broker or received from a message broker
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a message either to be sent to a message broker or received from a message broker
|
||||
/// </summary>
|
||||
public interface IMessage
|
||||
{
|
||||
|
||||
|
|
|
@ -17,17 +17,13 @@
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
namespace JMS
|
||||
{
|
||||
public delegate void MessageListener(IMessage message);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A consumer of messages
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
/// <summary>
|
||||
/// A consumer of messages
|
||||
/// </summary>
|
||||
public interface IMessageConsumer : IDisposable
|
||||
{
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An object capable of sending messages to some destination
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// An object capable of sending messages to some destination
|
||||
/// </summary>
|
||||
public interface IMessageProducer : IDisposable
|
||||
{
|
||||
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
*/
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a Map of primitive types where the keys are all string instances
|
||||
/// and the values are strings or numbers.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a Map of primitive types where the keys are all string instances
|
||||
/// and the values are strings or numbers.
|
||||
/// </summary>
|
||||
public interface IPrimitiveMap
|
||||
{
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for IQueue.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for IQueue.
|
||||
/// </summary>
|
||||
public interface IQueue : IDestination
|
||||
{
|
||||
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a single unit of work on an IConnection.
|
||||
/// So the ISession can be used to perform transactional receive and sends
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a single unit of work on an IConnection.
|
||||
/// So the ISession can be used to perform transactional receive and sends
|
||||
/// </summary>
|
||||
public interface ISession : IDisposable
|
||||
{
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ITemporaryQueue.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ITemporaryQueue.
|
||||
/// </summary>
|
||||
public interface ITemporaryQueue : IDestination
|
||||
{
|
||||
}
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for TemporaryTopic.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for TemporaryTopic.
|
||||
/// </summary>
|
||||
public interface ITemporaryTopic : IDestination
|
||||
{
|
||||
}
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using JMS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a text based message
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a text based message
|
||||
/// </summary>
|
||||
public interface ITextMessage : IMessage
|
||||
{
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
using JMS;
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ITopic.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ITopic.
|
||||
/// </summary>
|
||||
public interface ITopic : IDestination
|
||||
{
|
||||
|
||||
|
|
|
@ -16,15 +16,15 @@
|
|||
*/
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a connection failure.
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a connection failure.
|
||||
/// </summary>
|
||||
public class ConnectionException : JMSException
|
||||
{
|
||||
public JMSException(string message) : base(message)
|
||||
public ConnectionException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
*/
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a JMS exception
|
||||
/// </summary>
|
||||
namespace JMS
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a JMS exception
|
||||
/// </summary>
|
||||
public class JMSException : Exception
|
||||
{
|
||||
public JMSException(string message) : base(message)
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace ActiveMQ.OpenWire
|
|||
dis.ReadByte();
|
||||
Assert.Fail("Should have reached the end of the stream");
|
||||
}
|
||||
catch (IOException e)
|
||||
catch (IOException)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue