Package | com.sibirjak.angara.core |
Class | public class ConnectionPool |
Inheritance | ConnectionPool ![]() |
Property | Defined by | ||
---|---|---|---|
numFreeConnections : uint [read-only]
Returns the number of free connections.
| ConnectionPool |
Method | Defined by | ||
---|---|---|---|
ConnectionPool(maxConnections:uint)
Creates a new ConnectionPool instance.
| ConnectionPool | ||
clear():void
Closes all open connections.
| ConnectionPool | ||
load(itemsToLoad:Array):void
Starts loading for each of the specified list of resource loaders.
| ConnectionPool | ||
toString():String
Info
| ConnectionPool |
Method | Defined by | ||
---|---|---|---|
dispatchRemove():void
Dispatches the LoaderItemEvent.REMOVE event.
| ConnectionPool |
numFreeConnections | property |
numFreeConnections:uint
[read-only]Returns the number of free connections.
This method is called by the LoaderManager. The pool will subsequently be filled by the number of resource loaders returned by this method.
The method will return zero if at least 1 resource loader defines a callback function. In such a case we have to wait for the callbacks finish before we continue loading other resources.
Implementation public function get numFreeConnections():uint
ConnectionPool | () | constructor |
public function ConnectionPool(maxConnections:uint)
Creates a new ConnectionPool instance.
ParametersmaxConnections:uint — The number of simultaneous http connections.
|
clear | () | method |
public function clear():void
Closes all open connections.
The method calls the stop() property of each containing resource loader. The loader is then supposed to dispatch a stop notification, which will remove it from the connection pool.
dispatchRemove | () | method |
protected function dispatchRemove():void
Dispatches the LoaderItemEvent.REMOVE event.
load | () | method |
public function load(itemsToLoad:Array):void
Starts loading for each of the specified list of resource loaders.
ParametersitemsToLoad:Array — List of loaders to start loading.
|
toString | () | method |
public override function toString():String
Info
ReturnsString |