addDefaultCb | 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.
|
addErrorCb | Overloaded.
Adds an error callback class with default priority. The
error callback is called when certian types of errors occur.
|
addProcessCb | 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.
|
addQueueCb | 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.
|
addReadCb | 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.
|
addWriteBufferChangeCb | 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.
|
addWriteCb | 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.
|
check | 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.
|
destroy | Destroys the connection. |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
flush |
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.
|
getGmdDir | Gets the directory where GMD files are written. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
getOption |
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.
|
getOptionBool |
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.
|
getOptionDouble |
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.
|
getOptionInt |
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.
|
getOptionStr |
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.
|
getTimeout | 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.
|
GetType (inherited from Object) | Gets the Type of the current instance. |
gmdFileDelete |
Removes GMD files from disk.
|
gmdMsgAck |
Acknowledges a message sent with GMD.
|
gmdMsgDelete |
Delete a message from the local spool.
|
gmdMsgResend |
Resends a message previously sent with GMD. This should
only be used within a GMD_FAILURE callback.
|
gmdResend |
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 |
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.
|
keepAlive | 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.
|
loadOptionsStream |
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.
|
lookupDefaultCb |
Looks up callback for default message processing.
|
lookupErrorCb |
Looks up callback for error processing.
|
lookupProcessCb | Overloaded.
Looks up callback for process message processing.
|
lookupQueueCb | Overloaded.
Looks up callback for queued message processing.
|
lookupReadCb | Overloaded.
Looks up callback for message reading.
|
lookupWriteBufferChangeCb |
Looks up callback for write buffer change processing.
|
lookupWriteCb | Overloaded.
Looks up callback for message writing.
|
mainLoop |
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.
|
makeSubjectAbsolute |
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.
|
next |
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 |
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 |
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.
|
readFully | Overloaded. |
removeDefaultCb |
Remove a default callback class.
|
removeErrorCb |
Remove a error callback class.
|
removeProcessCb |
Remove a process callback class.
|
removeQueueCb |
Remove a queue callback class.
|
removeReadCb |
Remove a read callback class.
|
removeTrafficCb |
Remove a traffic callback class.
|
removeWriteBufferChangeCb |
Remove a write buffer change callback class.
|
removeWriteCb |
Remove a write callback class.
|
search |
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.
|
searchType | 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.
|
searchTypeNoFlush | Searches for a message of a particular type without flushing
the outbound queue first.
|
send |
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.
|
sendRpc |
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.
|
setOption |
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.
|
setTimeout | Set a timeout value. See the
getTimeout method for an explanation
of connection timeout properties.
|
ToString (inherited from Object) | Returns a String that represents the current Object. |
write | Overloaded. |