Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere Java API reference » QAnywhere Java API for clients

 

MessageType interface

Syntax
public MessageType
Remarks

Defines constant values for the MessageProperties.MSG_TYPE message property.

The following example shows the onSystemMessage(QAMessage) method, which is used to handle QAnywhere system messages. The message type is compared to MessageType.NETWORK_STATUS_NOTIFICATION.

private void onSystemMessage(QAMessage msg) {
    QATextMessage    t_msg;
    int              msg_type;
    String           network_adapters;
    String           network_names;
    String           network_info;

    t_msg = (QATextMessage) msg;
    if (t_msg != null) {
        // Evaluate message type.
        msg_type = t_msg.getIntProperty(MessageProperties.MSG_TYPE);
        if (msg_type == MessageType.NETWORK_STATUS_NOTIFICATION) {
            // Handle network status notification.
        }
    }
 }
Members

All members of ianywhere.qanywhere.client.MessageType, including all inherited members.


NETWORK_STATUS_NOTIFICATION variable
PUSH_NOTIFICATION variable
REGULAR variable