Class: RocketAMF::Values::CommandMessage

Inherits:
AsyncMessage show all
Defined in:
lib/rocketamf/values/messages.rb

Overview

Maps to flex.messaging.messages.CommandMessage

Direct Known Subclasses

CommandMessageExt

Constant Summary collapse

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
EXTERNALIZABLE_FIELDS =
[
%w[ operation ]

Instance Attribute Summary collapse

Attributes inherited from AsyncMessage

#correlationId

Attributes inherited from AbstractMessage

#body, #clientId, #destination, #headers, #messageId, #timeToLive, #timestamp

Instance Method Summary collapse

Methods inherited from AsyncMessage

#correlationIdBytes=

Methods inherited from AbstractMessage

#clientIdBytes=, #messageIdBytes=

Constructor Details

#initializeCommandMessage

Returns a new instance of CommandMessage.



131
132
133
# File 'lib/rocketamf/values/messages.rb', line 131

def initialize
  @operation = UNKNOWN_OPERATION
end

Instance Attribute Details

#operationObject

Returns the value of attribute operation.



129
130
131
# File 'lib/rocketamf/values/messages.rb', line 129

def operation
  @operation
end

Instance Method Details

#read_external(des) ⇒ Object



135
136
137
138
# File 'lib/rocketamf/values/messages.rb', line 135

def read_external des
  super des
  read_external_fields des, EXTERNALIZABLE_FIELDS
end