IROAsyncResponseStorage

Overview

The IROAsyncResponseStorage interface is used to manage requests and responses in the UDP channel (TROIndyUDPChannel class). You can implement the IROAsyncResponseStorage interface in your custom asynchronous channel for managing the storage of requests and responses.

Location


 

AddResp

Adds a response item aResp to the storage.

procedure AddResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be added.

ClearStorage

Clears the storage.

procedure ClearStorage

CountOfResp

Returns the count of responses in the storage.

function CountOfResp: Integer

DeleteResp

Deletes the response item specified by Index.

procedure DeleteResp(Index: Integer)

Parameters:

  • Index: Index of deleted response item.

GetResp

Returns the response item specified by Index.

function GetResp(Index: Integer): TROResponseItem

Parameters:

  • Index: Specified item index in the response storage.

GetRespByUID

Returns the response item specified by aUID.

function GetRespByUID(aUID: string): TROResponseItem

Parameters:

  • aUID: Unique identifier of the response storage that will be returned.

IndexOfResp

Returns the index of the specified response item.

function IndexOfResp(aResp: TROResponseItem): Integer

Parameters:

  • aResp: Response item whose index will be returned.

RemoveResp

Removes the specified response item from the storage.

procedure RemoveResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be removed.

RemoveRespByUID

Removes the response item specified by a unique identifier from the storage.

procedure RemoveRespByUID(aUID: string)

Parameters:

  • aUID: Unique identifier of the response item that will be removed.

ResponseItem

Represents a single response item from the storage.

property ResponseItem[Index: Integer]: TROResponseItem read

 

ResponseItem

Represents a single response item from the storage.

property ResponseItem[Index: Integer]: TROResponseItem read

 

AddResp

Adds a response item aResp to the storage.

procedure AddResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be added.

ClearStorage

Clears the storage.

procedure ClearStorage

CountOfResp

Returns the count of responses in the storage.

function CountOfResp: Integer

DeleteResp

Deletes the response item specified by Index.

procedure DeleteResp(Index: Integer)

Parameters:

  • Index: Index of deleted response item.

GetResp

Returns the response item specified by Index.

function GetResp(Index: Integer): TROResponseItem

Parameters:

  • Index: Specified item index in the response storage.

GetRespByUID

Returns the response item specified by aUID.

function GetRespByUID(aUID: string): TROResponseItem

Parameters:

  • aUID: Unique identifier of the response storage that will be returned.

IndexOfResp

Returns the index of the specified response item.

function IndexOfResp(aResp: TROResponseItem): Integer

Parameters:

  • aResp: Response item whose index will be returned.

RemoveResp

Removes the specified response item from the storage.

procedure RemoveResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be removed.

RemoveRespByUID

Removes the response item specified by a unique identifier from the storage.

procedure RemoveRespByUID(aUID: string)

Parameters:

  • aUID: Unique identifier of the response item that will be removed.