Class TNetworkRequestQueue
Unit
Declaration
type TNetworkRequestQueue = class(TObject)
Description
Queuer of network requests. Under the hood uses multiple background threads to execute several blocking requests at the same time.
Hierarchy
- TObject
- TNetworkRequestQueue
Overview
Methods
![]() |
constructor Create(MaxTasksPerThread, MaxThreads: Cardinal; RequestProc: TBlockingNetworkRequestProc; TilesProvider: TTilesProvider); |
![]() |
destructor Destroy; override; |
![]() |
procedure RequestTile(const Tile: TTile); |
![]() |
procedure SetCurrentViewRect(const ViewRect: TRect); |
Properties
![]() |
property RequestProps: THttpRequestProps read FRequestProps write FRequestProps; |
![]() |
property DumbQueueOrder: Boolean read FDumbQueueOrder write FDumbQueueOrder; |
![]() |
property OnGotTileBgThr: TGotTileCallbackBgThr read FGotTileCb write FGotTileCb; |
Description
Methods
![]() |
constructor Create(MaxTasksPerThread, MaxThreads: Cardinal; RequestProc: TBlockingNetworkRequestProc; TilesProvider: TTilesProvider); |
|
Constructor Parameters
| |
![]() |
destructor Destroy; override; |
|
This item has no description. | |
![]() |
procedure RequestTile(const Tile: TTile); |
|
Add request for an image for | |
Properties
![]() |
property RequestProps: THttpRequestProps read FRequestProps write FRequestProps; |
|
Common network request props applied to all requests in current queue. Changing the properties won't take effect until queue gets empty. URL field is ignored. | |
![]() |
property DumbQueueOrder: Boolean read FDumbQueueOrder write FDumbQueueOrder; |
|
If set: disable all smart ordering facilities. Queue will retrieve all added tiles one by one. If not set (default):
| |
![]() |
property OnGotTileBgThr: TGotTileCallbackBgThr read FGotTileCb write FGotTileCb; |
|
Handler to call when request is completed (executed in the context of background thread!) | |
Generated by PasDoc 0.16.0.
