C# Class Apache.NMS.Util.SessionUtil

Class to provide support for working with Session objects.
Datei anzeigen Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method Description
DeleteDestination ( ISession session, string destinationName ) : void

Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.

DeleteDestination ( ISession session, string destinationName, DestinationType defaultType ) : void

Delete the named destination by parsing the embedded type prefix.

DeleteQueue ( ISession session, string queueName ) : void
DeleteTopic ( ISession session, string topicName ) : void
GetDestination ( ISession session, string destinationName ) : IDestination

Get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.

GetDestination ( ISession session, string destinationName, DestinationType defaultType ) : IDestination

Get the destination by parsing the embedded type prefix.

GetQueue ( ISession session, string queueName ) : IQueue
GetTopic ( ISession session, string topicName ) : ITopic

Method Details

DeleteDestination() public static method

Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
public static DeleteDestination ( ISession session, string destinationName ) : void
session ISession Session object to use to get the destination.
destinationName string Name of destination with embedded prefix. The embedded prefix can be one of the following: /// /// queue:// /// topic:// /// temp-queue:// /// temp-topic:// /// ///
return void

DeleteDestination() public static method

Delete the named destination by parsing the embedded type prefix.
public static DeleteDestination ( ISession session, string destinationName, DestinationType defaultType ) : void
session ISession Session object to use to get the destination.
destinationName string Name of destination with embedded prefix. The embedded prefix can be one of the following: /// /// queue:// /// topic:// /// temp-queue:// /// temp-topic:// /// ///
defaultType DestinationType Default type if no embedded prefix is specified.
return void

DeleteQueue() public static method

public static DeleteQueue ( ISession session, string queueName ) : void
session ISession
queueName string
return void

DeleteTopic() public static method

public static DeleteTopic ( ISession session, string topicName ) : void
session ISession
topicName string
return void

GetDestination() public static method

Get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
public static GetDestination ( ISession session, string destinationName ) : IDestination
session ISession Session object to use to get the destination.
destinationName string Name of destination with embedded prefix. The embedded prefix can be one of the following: /// /// queue:// /// topic:// /// temp-queue:// /// temp-topic:// /// ///
return IDestination

GetDestination() public static method

Get the destination by parsing the embedded type prefix.
public static GetDestination ( ISession session, string destinationName, DestinationType defaultType ) : IDestination
session ISession Session object to use to get the destination.
destinationName string Name of destination with embedded prefix. The embedded prefix can be one of the following: /// /// queue:// /// topic:// /// temp-queue:// /// temp-topic:// /// ///
defaultType DestinationType Default type if no embedded prefix is specified.
return IDestination

GetQueue() public static method

public static GetQueue ( ISession session, string queueName ) : IQueue
session ISession
queueName string
return IQueue

GetTopic() public static method

public static GetTopic ( ISession session, string topicName ) : ITopic
session ISession
topicName string
return ITopic