TIBCO eFTL™
|
Programs use class EFTL to connect to an eFTL server. More...
Static Public Member Functions | |
static void | Connect (String url, Hashtable props, IConnectionListener listener) |
Connect to an eFTL server. More... | |
static String | GetVersion () |
Get the version of the eFTL .NET client library. More... | |
Static Public Attributes | |
static readonly String | PROPERTY_ACKNOWLEDGE_MODE = "ack" |
Create a subscription with a specific acknowledgment mode. More... | |
static readonly String | PROPERTY_AUTO_RECONNECT_ATTEMPTS = "auto_reconnect_attempts" |
Autoreconnect maximum attempts; property name. More... | |
static readonly String | PROPERTY_AUTO_RECONNECT_MAX_DELAY = "auto_reconnect_max_delay" |
Autoreconnect maximum delay; property name. More... | |
static readonly String | PROPERTY_CLIENT_ID = "client_id" |
Connect using this client identifier; property name. More... | |
static readonly String | PROPERTY_DURABLE_KEY = "key" |
Specify the key field of a last-value durable subscription; property name. More... | |
static readonly String | PROPERTY_DURABLE_TYPE = "type" |
Create a durable subscription of this type; property name. More... | |
static readonly String | PROPERTY_MAX_PENDING_ACKS = "max_pending_acks" |
Maximum number of unacknowledged messages allowed for the client; property name. More... | |
static readonly String | PROPERTY_PASSWORD = "password" |
Connect using this password; property name. More... | |
static readonly String | PROPERTY_TIMEOUT = "timeout" |
Connection attempt timeout; property name. More... | |
static readonly String | PROPERTY_TRUST_ALL = "trust_all" |
Trust any eFTL server certificate; property name. More... | |
static readonly String | PROPERTY_USERNAME = "user" |
Connect as this user; property name. More... | |
Protected Member Functions | |
EFTL () | |
Programs use class EFTL to connect to an eFTL server.
|
inlineprotected |
|
inlinestatic |
Connect to an eFTL server.
This call returns immediately; connecting continues asynchronously. When the connection is ready to use, the eFTL library calls your IConnectionListener.OnConnect method, passing an IConnection object that you can use to publish and subscribe.
When a pipe-separated list of URLs is specified this call will attempt a connection to each in turn, in a random order, until one is connected.
A program that uses more than one server channel must connect separately to each channel.
url | The call connects to the eFTL server at this URL. This can be a single URL, or a pipe ('|') separated list of URLs. URLs can be in either of these forms:
|
props | These properties affect the connection attempt: |
listener | Connection events invoke methods of this listener. |
|
inlinestatic |
Get the version of the eFTL .NET client library.
|
static |
Create a subscription with a specific acknowledgment mode.
Programs use this property to specify how messages received by the subscription are acknowledged. The following acknowledgment modes are supported:
If you omit this property, the subscription is created with an acknowledgment mode of AcknowledgeMode.AUTO.
|
static |
Autoreconnect maximum attempts; property name.
Programs use this property to supply the maximum number of autoreconnect attempts to the EFTL.Connect call. If the connection is lost, the client will attempt to automatically reconnect to the server. If the number of autoreconnect attempts exceeds this value, it stops trying to autoreconnect and invokes your IConnectionListener.OnDisconnect method with a ConnectionListenerConstants.CONNECTION_ERROR code.
If you omit this property, the default number of attempts is 5.
|
static |
Autoreconnect maximum delay; property name.
Programs use this property to supply the maximum delay (in seconds) between autoreconnect attempts to the EFTL.Connect call. If the connection is lost, the client will attempt to automatically reconnect to the server after a delay of 1 second. For each subsequent attempt, the delay is doubled, to a maximum determined by this property.
If you omit this property, the default maximum delay is 30 seconds.
|
static |
Connect using this client identifier; property name.
Programs use this property to supply a client identifier to the EFTL.Connect call if the client identifier is not specified with the URL. The server uses the client identifier to associate a particular client with a durable subscription.
If you omit this property, the server assigns a unique client identifier.
|
static |
Specify the key field of a last-value durable subscription; property name.
Programs use this property to supply a key field to the IConnection.Subscribe(String, String, Hashtable, ISubscriptionListener) call when the EFTL.PROPERTY_DURABLE_TYPE property is of type DurableType.LAST_VALUE. Note that the supplied key field must be a part of the durable subscription's matcher.
|
static |
Create a durable subscription of this type; property name.
Programs use this optional property to supply a durable type to the IConnection.Subscribe(String, String, Hashtable, ISubscriptionListener) call. If not specified the default durable type will be used.
|
static |
Maximum number of unacknowledged messages allowed for the client; property name.
Programs use this property to specify the maximum number of unacknowledged messages allowed for the client. Once the maximum number of unacknowledged messages is reached the client will stop receiving additional messages until previously received messages are acknowledged.
If you omit this property, the server's configured value will be used.
|
static |
Connect using this password; property name.
Programs use this property to supply a password credential to the EFTL.Connect call if the password is not specified with the URL. The server authenticates the user and password.
|
static |
Connection attempt timeout; property name.
Programs use this property to supply a timeout to the EFTL.Connect call. If the client cannot connect to the server within this time limit (in seconds), it stops trying to connect and invokes your IConnectionListener.OnDisconnect method with a ConnectionListenerConstants.CONNECTION_ERROR code.
If you omit this property, the default timeout is 15.0 seconds.
|
static |
Trust any eFTL server certificate; property name.
When present with value true
, the client accepts any eFTL server certificate. Use this setting only in development environments. It is not secure, so it is unsuitable for production environments.
When absent or false
, the client trusts only certificates installed on the client host computer.
|
static |
Connect as this user; property name.
Programs use this property to supply a username credential to the EFTL.Connect call if the username is not specified with the URL. The server authenticates the user and password.