TIBCO EMS .NET API 10.2
TIBCO EMS .NET API 10.2
TIBCO.EMS.TopicConnection Class Reference

A TopicConnection object is an active connection to a publish/subscribe TIBCO EMS Server. More...

Inheritance diagram for TIBCO.EMS.TopicConnection:
TIBCO.EMS.Connection

Public Member Functions

virtual TopicSession CreateTopicSession (bool transacted, int acknowledgeMode)
 Creates a TopicSession object. More...
 
virtual TopicSession CreateTopicSession (bool transacted, SessionMode acknowledgeMode)
 Creates a TopicSession object. More...
 
- Public Member Functions inherited from TIBCO.EMS.Connection
virtual Session CreateSession (bool transacted, int acknowledgeMode)
 Creates a Session object. More...
 
virtual Session CreateSession (bool transacted, SessionMode acknowledgeMode)
 Creates a Session object. More...
 
virtual void Start ()
 Starts (or restarts) a connection's delivery of incoming messages. More...
 
virtual void Stop ()
 Temporarily stops a connection's delivery of incoming messages. More...
 
virtual void Close ()
 Closes the connection and reclaims resources. More...
 
override string ToString ()
 A String representation of the conneciton object More...
 
virtual bool IsDisconnected ()
 Test whether a connection is permanently disconnected from the server. More...
 

Additional Inherited Members

- Properties inherited from TIBCO.EMS.Connection
bool IsClosed [get]
 Return true if connection is closed; otherwise false. More...
 
bool IsSecure [get]
 Return true if the connection communicates with a secure protocol; otherwise false. More...
 
long ConnID [get]
 Get the connection id. More...
 
string ClientID [get, set]
 Gets and Set the Client Id More...
 
string ActiveURL [get]
 Get URL of the server this connection is currently connected to More...
 
ConnectionMetaData MetaData [get]
 Gets the metadata for this connection. More...
 
EMSExceptionHandler ExceptionHandler
 The exception event handler More...
 
IExceptionListener ExceptionListener [get, set]
 Get and set the exception event listener More...
 

Detailed Description

A TopicConnection object is an active connection to a publish/subscribe TIBCO EMS Server.

Note: This class is provided for backward compatibility to support older EMS clients programs. New clients should use the Connection class instead.

A TopicConnection creates a TopicSession for producing and consuming messages.

Member Function Documentation

virtual TopicSession TIBCO.EMS.TopicConnection.CreateTopicSession ( bool  transacted,
int  acknowledgeMode 
)
inlinevirtual

Creates a TopicSession object.

Note: This method is provided for backward compatibility to support older EMS clients programs.

The new topic session uses the connection for all server communications.

Parameters
transactedIndicates whether the session is transacted.When true, the new session has transaction semantics.When false, it has non-transaction semantics.
acknowledgeModeIndicates whether and how the consumer is to acknowledge received messages. This version of CreateTopicSession accepts an integer value associated with the acknowledge mode described by a Session member and should only be used for backward compatibility.This parameter is ignored if the session is transacted.
Returns
A newly created topic session
virtual TopicSession TIBCO.EMS.TopicConnection.CreateTopicSession ( bool  transacted,
SessionMode  acknowledgeMode 
)
inlinevirtual

Creates a TopicSession object.

Note: This method is provided for backward compatibility to support older EMS clients programs.

The new topic session uses the connection for all server communications.

Parameters
transactedIndicates whether the session is transacted.

When true, the new session has transaction semantics.

When false, it has non-transaction semantics.

Parameters
acknowledgeModeIndicates whether and how the consumer is to acknowledge received messages. Legal values are listed under SessionMode. This parameter is ignored if the session is transacted.
Returns
A newly created topic session

Copyright © Cloud Software Group, Inc. All rights reserved.