\Zend_Amf_Value_Messaging_CommandMessage
A message that represents an infrastructure command passed between client and server. Subscribe/unsubscribe operations result in CommandMessage transmissions, as do polling operations.
Corresponds to flex.messaging.messages.CommandMessage
Note: THESE VALUES MUST BE THE SAME ON CLIENT AND SERVER
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Value_Messaging_CommandMessage
extends Zend_Amf_Value_Messaging_AsyncMessage
{
- // constants
- const SUBSCRIBE_OPERATION = 0;
- const UNSUSBSCRIBE_OPERATION = 1;
- const POLL_OPERATION = 2;
- const CLIENT_SYNC_OPERATION = 4;
- const CLIENT_PING_OPERATION = 5;
- const CLUSTER_REQUEST_OPERATION = 7;
- const LOGIN_OPERATION = 8;
- const LOGOUT_OPERATION = 9;
- const SESSION_INVALIDATE_OPERATION = 10;
- const MULTI_SUBSCRIBE_OPERATION = 11;
- const DISCONNECT_OPERATION = 12;
- const UNKNOWN_OPERATION = 10000;
- // members
- public int $operation = self::UNKNOWN_OPERATION;
- // Inherited members from Zend_Amf_Value_Messaging_AsyncMessage
- public String $correlationId;
- // Inherited members from Zend_Amf_Value_Messaging_AbstractMessage
- public $clientId;
- public $destination;
- public $messageId;
- public $timestamp;
- public $timeToLive;
- public $headers;
- public $body;
- // Inherited methods from Zend_Amf_Value_Messaging_AbstractMessage
- public string generateId()
Hierarchy
Constants
Name | Value |
---|---|
SUBSCRIBE_OPERATION | 0 |
UNSUSBSCRIBE_OPERATION | 1 |
POLL_OPERATION | 2 |
CLIENT_SYNC_OPERATION | 4 |
CLIENT_PING_OPERATION | 5 |
CLUSTER_REQUEST_OPERATION | 7 |
LOGIN_OPERATION | 8 |
LOGOUT_OPERATION | 9 |
SESSION_INVALIDATE_OPERATION | 10 |
MULTI_SUBSCRIBE_OPERATION | 11 |
DISCONNECT_OPERATION | 12 |
UNKNOWN_OPERATION | 10000 |
Members
public
- $body — string
- $clientId — string
- $correlationId
—
String
The message id to be responded to. - $destination — string
- $headers —
- $messageId — string
- $operation
—
int
The operation to execute for messages of this type - $timeToLive — int
- $timestamp — int