Class SessionUtil
Class to provide support for working with Session objects.
Inheritance
Inherited Members
Namespace: Apache.NMS.Util
Assembly: Apache.NMS.dll
Syntax
public class SessionUtil
Methods
| Improve this Doc View SourceDeleteDestination(ISession, String)
Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
Declaration
public static void DeleteDestination(ISession session, string destinationName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | Session object to use to get the destination. |
System.String | destinationName | Name of destination with embedded prefix. The embedded prefix can be one of the following: |
DeleteDestination(ISession, String, DestinationType)
Delete the named destination by parsing the embedded type prefix.
Declaration
public static void DeleteDestination(ISession session, string destinationName, DestinationType defaultType)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | Session object to use to get the destination. |
System.String | destinationName | Name of destination with embedded prefix. The embedded prefix can be one of the following: |
DestinationType | defaultType | Default type if no embedded prefix is specified. |
DeleteQueue(ISession, String)
Declaration
public static void DeleteQueue(ISession session, string queueName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | |
System.String | queueName |
DeleteTopic(ISession, String)
Declaration
public static void DeleteTopic(ISession session, string topicName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | |
System.String | topicName |
GetDestination(ISession, String)
Get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
Declaration
public static IDestination GetDestination(ISession session, string destinationName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | Session object to use to get the destination. |
System.String | destinationName | Name of destination with embedded prefix. The embedded prefix can be one of the following: |
Returns
Type | Description |
---|---|
IDestination |
GetDestination(ISession, String, DestinationType)
Get the destination by parsing the embedded type prefix.
Declaration
public static IDestination GetDestination(ISession session, string destinationName, DestinationType defaultType)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | Session object to use to get the destination. |
System.String | destinationName | Name of destination with embedded prefix. The embedded prefix can be one of the following: |
DestinationType | defaultType | Default type if no embedded prefix is specified. |
Returns
Type | Description |
---|---|
IDestination |
GetQueue(ISession, String)
Declaration
public static IQueue GetQueue(ISession session, string queueName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | |
System.String | queueName |
Returns
Type | Description |
---|---|
IQueue |
GetTopic(ISession, String)
Declaration
public static ITopic GetTopic(ISession session, string topicName)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | |
System.String | topicName |
Returns
Type | Description |
---|---|
ITopic |