The methods defined in the JadeMultiWorkerTcpConnection class are summarized in the following table.
Method | Description |
---|---|
bindToAssignedWorker | Binds this connection to the currently assigned worker (that is, to the current JADE process) |
bindToWorkerId | Attempts to bind the connection to the worker process with the specified worker identifier |
causeUserEvent | Queues a user event for the connection with the specified tag value |
close | Requests that the connection be closed locally |
getAssignedWorkerId | Returns the worker to which the connection is assigned |
getBoundWorkerId | Returns the worker identifier (the current or another worker process) to which the connection is bound |
getFullName | Returns a string containing the full name of the associated JadeMultiWorkerTcpTransport object |
getGroupId | Returns the identifier of the transport group to which the connection belongs |
getLocalHostname | Returns a string containing the generic host name associated with the localAddress property |
getRemoteHostname | Returns a string containing the generic host name associated with the remoteAddress property |
readBinary | Reads binary data from the connection and returns when the specified number of bytes has been read or when a block of data is received |
readUntil | Reads data from the connection and returns when the specified delimiter is found in the data stream |
unbind | Unbinds the connection if it is currently bound |
writeBinary | Writes binary data to the connection and returns when the operation is complete |
writeBinaryAndFile | Writes binary data and the file to the connection, writes the specified section of the file, and then returns when the operation is complete |