The methods of the TipcConnClient class are listed below. For a complete list of TipcConnClient class members, see the TipcConnClient Members topic.
![]() | Overloaded. Adds a default callback class with default priority. This callback is called if there are no other callbacks defined for a given message type. |
![]() | Overloaded. Adds an error callback class with default priority. The error callback is called when certian types of errors occur. |
![]() | Overloaded. Adds a process callback class with default priority. The process callback is called when process is called with a message matching the provided message type. The message type parameter may be null, which means that all message types will be passed to this method. However, if you use the null form, you must cast the null to TipcMt, or the compiler will be unable to resolve which version of this method you wish: this one, or the version that takes a mt number parameter. To avoid the cast. you can use the mt number version instead, and pass a 0 as the mt number. |
![]() | Overloaded. Adds a queue callback class for message type with default priority. The queue callback is called when a message is inserted or removed from the connection's queue. The queue callback is called when a message is inserted or removed and message has a callback registered with a message matching the provided message type. The message type parameter may be null, which means that all message types will be passed to this method. However, if you use the null form, you must cast the null to TipcMt, or the compiler will be unable to resolve which version of this method you wish: this one, or the version that takes a mt number parameter. To avoid the cast. you can use the mt number version instead, and pass a 0 as the mt number. |
![]() | Overloaded. Adds a read callback class with default priority. The read callback is called when a message is read. It is called before the message is returned by the next method. |
![]() | Overloaded. Adds a write buffer change callback class with default priority. The write buffer callbacks are called when the write buffer is either flushed or written to THROUGH the message interface ONLY. |
![]() | Overloaded. Adds a write callback class with default priority. The write callback is called when a message is written. It is called when the message is actually sent, not when the send method is called. |
![]() | Checks for traffic on the connection.
If check_mode is IO_CHECK_READ,
this method will return true if there is data available
to be read. If IO_CHECK_WRITE,
true will be returned if data can be written to the connection
without blocking.
If the timeout_read option is 0.0, this method will
block for up to timeout seconds. Otherwise, this method will return immediately.
Note: this method is also called by the
next and
search methods. This
method is rarely used by end-user programs.
|
![]() | Destroys the connection. |
![]() | Determines whether the specified Object is equal to the current Object. |
![]() | Flushed queued data to the connection. This ensures all buffered data is written immediately. The outbound queue will be flushed automatically when it reaches a set size, set by AutoFlushSize property, unless the auto flush size is set to 0, in which case explicit calls to this method are required. |
![]() | Gets the directory where GMD files are written. |
![]() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
![]() | Convenience method to get an option by name. Typically one would use the getOption method. This method is available for when an option needs to be different for each connection. |
![]() | Convenience method to get an option's boolean value. Typically one would use the getOptionBool method. This method is available for when an option needs to be different for each connection. |
![]() | Convenience method to get an option's double value. Typically one would use the getOptionDouble method. This method is available for when an option needs to be different for each connection. |
![]() | Convenience method to get an option's int value. Typically one would use the getOptionInt method. This method is available for when an option needs to be different for each connection. |
![]() | Convenience method to get an option's String value. Typically one would use the getOptionStr method. This method is available for when an option needs to be different for each connection. |
![]() | Get a timeout value. There are several timeout properties associated with a connection: TIMEOUT_READ, TIMEOUT_WRITE, TIMEOUT_KEEP_ALIVE, and TIMEOUT_DELIVERY, all of which are used to check for network failures. This method allows the values of these timeout properties to be inspected. All timeout values are in seconds. The TIMEOUT_READ property specifies the length of time that no data is read on the connection before a keep alive message is exchanged with remote end. If this is set to 0.0, the connection will block forever waiting for data to arrive and no keep alives will be generated. The TIMEOUT_KEEP_ALIVE property is the length of time the client will wait for a reply to a keep alive request. If this timeout expires, the error callback will be called with a timeout error code. The TIMEOUT_DELIVERY property is the length of time the client will wait for an ack to arrive for amessage sent with GMD. If this expires, a GMD_FAILURE message will be generated and processed by the client. The TIMEOUT_WRITE property is not implemented in this release. |
![]() | Gets the Type of the current instance. |
![]() | Removes GMD files from disk. |
![]() | Acknowledges a message sent with GMD. |
![]() | Delete a message from the local spool. |
![]() |
Resends a message previously sent with GMD. This should
only be used within a GMD_FAILURE callback.
|
![]() | Resends all spooled messages. For Rtserver connections, method will be called automatically when a connection is re-made, so there is no need to call it yourself. Caution: this method should only be used when a connection is first created. This method resends messages with GMD, but does not explicitly flush the messags. You may need to invoke flush. |
![]() | Insert a message into the inbound queue. For inserting messages to be processed as though they were received from the socket, or re-inserting messages that have been removed, but cannot be processed immediately. |
![]() | Send a keep alive message to the other end and wait synchronously for a response. The amount of time to wait is set by the KEEP_ALIVE timeout. If the keep alive timeout expires before the other end of the connection responds, this method will fail. |
![]() | Loads an option file from an InputStream. Loaded options override existing options with the same key. Typically one would use the loadOptionsStream method. This method is available for when an option needs to be different for each connection. |
![]() | Looks up callback for default message processing. |
![]() | Looks up callback for error processing. |
![]() | Overloaded. Looks up callback for process message processing. |
![]() | Overloaded. Looks up callback for queued message processing. |
![]() | Overloaded. Looks up callback for message reading. |
![]() | Looks up callback for write buffer change processing. |
![]() | Overloaded. Looks up callback for message writing. |
![]() | Loop for the specified timeout, reading and processing messages from the connection. This is a convenience method, which employs a loop doing next, process, and ack. To specify an infinite loop, pass TIMEOUT_FOREVER. |
![]() | If the subject isn't absolute (doesn't start with "/"), tack on the default subject prefix, if is exists. If the prefix isn't set to anything, it simply returns the original name untouched. |
![]() | Get messages from the inbound queue. If no messages are waiting in the inbound queue this method will block waiting for a message to arrive from the connection. |
![]() | Process a message by calling the process callbacks for that mesage's type. A callback may be setup to process mesages as they arrive. This method calls those callbacks. |
![]() | Read traffic. This is functionally equivalent to calling check with IO_CHECK_READ mode. The background reader thread will fill the inbound message queue with any messages that arrive during the timeout period. |
![]() | Overloaded. |
![]() | Remove a default callback class. |
![]() | Remove a error callback class. |
![]() | Remove a process callback class. |
![]() | Remove a queue callback class. |
![]() | Remove a read callback class. |
![]() | Remove a traffic callback class. |
![]() | Remove a write buffer change callback class. |
![]() | Remove a write callback class. |
![]() | Find a message in the inbound queue, using a user-provided matching method. This method scans the inbound queue, calling a user-provided method that is handed each message in turn to see if it matches the desired criteria. If no appropriate messages are found in the inbound queue, this method will wait until the desired message arrives from the connection. The message, if found, will be removed from the inbound queue. |
![]() | Overloaded. Find a message in the inbound queue matching a specific message type. This method scans the inbound queue, checking for messages matching the desired type. If no appropriate messages are found in the inbound queue, this method will wait until the desired message arrives from the connection. The message, if found, will be removed from the inbound queue. |
![]() | Searches for a message of a particular type without flushing the outbound queue first. |
![]() | Send a message. This method actually queues the data for later transmission. It is not actually sent until flush is called, either by the user directly, or by the auto-flush mechanism, based on the buffer size. |
![]() | Send a message and synchronously wait for the result. The expected result message will have a message type with a number one greater than the sent message type. If a message with the expected type is not received before the timeout expires, this method will fail. |
![]() | Convenience method to set an option by name. Typically one would use the setOption method. This method is available for when an option needs to be different for each connection. |
![]() | Set a timeout value. See the getTimeout method for an explanation of connection timeout properties. |
![]() | Returns a String that represents the current Object. |
![]() | Overloaded. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Creates a shallow copy of the current Object. |
TipcConnClient Class | TIBCO.SMARTSOCKETS Namespace | TipcConnServer | TipcSvc