| Package | com.whirled.contrib.platformer.net |
| Class | public class ThrottlingMessageManager |
| Inheritance | ThrottlingMessageManager MessageManager flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | _gameCtrl : GameControl | MessageManager | |
| _keepAlive : int | ThrottlingMessageManager | ||
![]() | _lastRec : int | MessageManager | |
| _lastSent : int | ThrottlingMessageManager | ||
| _lastTrackAdjust : int | ThrottlingMessageManager | ||
| _maxRate : int | ThrottlingMessageManager | ||
| _minRate : int | ThrottlingMessageManager | ||
![]() | _msgTypes : Map | MessageManager | |
| _queue : QueueMessage | ThrottlingMessageManager | ||
![]() | _rec : int | MessageManager | |
| _timer : Timer | ThrottlingMessageManager | ||
| _trackAdjustRate : int | ThrottlingMessageManager | ||
| _tracker : String | ThrottlingMessageManager | ||
| _trackReceived : int | ThrottlingMessageManager | ||
| Method | Defined by | ||
|---|---|---|---|
|
ThrottlingMessageManager(gameCtrl:GameControl, rate:int, keepAlive:int)
| ThrottlingMessageManager | ||
![]() |
addMessageType(messageClass:Class):void
| MessageManager | |
|
flushQueue():void
| ThrottlingMessageManager | ||
![]() |
getMessage(name:String, bytes:ByteArray):GameMessage
| MessageManager | |
![]() |
ifServerSend(createMsg:Function, ... args):void
Sends the GameMessage only if being run on the server.
| MessageManager | |
![]() |
notLocalSend(createMsg:Function, ... args):void
Sends the GameMessage if the game isn't run locally.
| MessageManager | |
|
sendMessage(msg:GameMessage):void
| ThrottlingMessageManager | ||
|
shutdown():void
| ThrottlingMessageManager | ||
|
trackRateAgainstId(tracker:String = null, adjustRate:int = 0, maxRate:int = 0):void
| ThrottlingMessageManager | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
checkSend(msg:GameMessage):void
| MessageManager | |
|
onMessageReceived(e:MessageReceivedEvent):void
| ThrottlingMessageManager | ||
|
onTimer(... ignored):void
| ThrottlingMessageManager | ||
| Constant | Defined by | ||
|---|---|---|---|
| DEFAULT_KEEP_ALIVE : int = 10000 [static]
| ThrottlingMessageManager | ||
| TRACK_RATE : int = 300 [static]
| ThrottlingMessageManager | ||
| _keepAlive | property |
protected var _keepAlive:int
| _lastSent | property |
protected var _lastSent:int
| _lastTrackAdjust | property |
protected var _lastTrackAdjust:int
| _maxRate | property |
protected var _maxRate:int
| _minRate | property |
protected var _minRate:int
| _queue | property |
protected var _queue:QueueMessage
| _timer | property |
protected var _timer:Timer
| _trackAdjustRate | property |
protected var _trackAdjustRate:int
| _tracker | property |
protected var _tracker:String
| _trackReceived | property |
protected var _trackReceived:int
| ThrottlingMessageManager | () | constructor |
public function ThrottlingMessageManager(gameCtrl:GameControl, rate:int, keepAlive:int)Parameters
gameCtrl:GameControl |
|
rate:int |
|
keepAlive:int |
| flushQueue | () | method |
public function flushQueue():void
| onMessageReceived | () | method |
protected override function onMessageReceived(e:MessageReceivedEvent):voidParameters
e:MessageReceivedEvent |
| onTimer | () | method |
protected function onTimer(... ignored):voidParameters
... ignored |
| sendMessage | () | method |
| shutdown | () | method |
public override function shutdown():void
| trackRateAgainstId | () | method |
public function trackRateAgainstId(tracker:String = null, adjustRate:int = 0, maxRate:int = 0):voidParameters
tracker:String (default = null) |
|
adjustRate:int (default = 0) |
|
maxRate:int (default = 0) |
| DEFAULT_KEEP_ALIVE | constant |
protected static const DEFAULT_KEEP_ALIVE:int = 10000
| TRACK_RATE | constant |
protected static const TRACK_RATE:int = 300