TROSimpleAsyncResponseStorage

Overview

This class is used internally by the Indy UDP channel TROIndyUDPChannel to handle request/response data.

Location

Implements

 

constructor Create  override

Creates a new instance.

constructor Create(AOwner: TComponent)

Parameters:

  • AOwner: Owner.

AddResp  override

Adds a response item aResp to the storage.

procedure AddResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be added.

Assign  override    (declared in TROComponent)

Copies the contents of another, similar object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

ClearStorage  override

Clears the storage.

procedure ClearStorage

CountOfResp  override

Returns the count of responses in the storage.

function CountOfResp: Integer

DeleteResp  override

Deletes the response item specified by Index.

procedure DeleteResp(Index: Integer)

Parameters:

  • Index: Index of deleted response item.

GetResp  protected override

Returns the response item specified by Index.

function GetResp(Index: Integer): TROResponseItem

Parameters:

  • Index: Index of the responses to be returned.

GetRespByUID  virtual    (declared in TROAsyncResponseStorage)

Returns the response item specified by aUID.

function GetRespByUID(aUID: string): TROResponseItem

Parameters:

  • aUID: Unique identifier of responses that will be returned.

IndexOfResp  override

Returns the index of the specified response item.

function IndexOfResp(aResp: TROResponseItem): Integer

Parameters:

  • aResp: Response item whose index will be returned.

RemoveResp  override

Removes the specified response item from the storage.

procedure RemoveResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response object that will be removed.

RemoveRespByUID  override

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

procedure RemoveRespByUID(aUID: string)

Parameters:

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

ResponseItem    (declared in TROAsyncResponseStorage)

Represents a single response item from the storage.

property ResponseItem[Index: Integer]: TROResponseItem read write

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

 

ResponseItem    (declared in TROAsyncResponseStorage)

Represents a single response item from the storage.

property ResponseItem[Index: Integer]: TROResponseItem read write

 

constructor Create  override

Creates a new instance.

constructor Create(AOwner: TComponent)

Parameters:

  • AOwner: Owner.

AddResp  override

Adds a response item aResp to the storage.

procedure AddResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response item that will be added.

Assign  override    (declared in TROComponent)

Copies the contents of another, similar object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

ClearStorage  override

Clears the storage.

procedure ClearStorage

CountOfResp  override

Returns the count of responses in the storage.

function CountOfResp: Integer

DeleteResp  override

Deletes the response item specified by Index.

procedure DeleteResp(Index: Integer)

Parameters:

  • Index: Index of deleted response item.

GetResp  protected override

Returns the response item specified by Index.

function GetResp(Index: Integer): TROResponseItem

Parameters:

  • Index: Index of the responses to be returned.

GetRespByUID  virtual    (declared in TROAsyncResponseStorage)

Returns the response item specified by aUID.

function GetRespByUID(aUID: string): TROResponseItem

Parameters:

  • aUID: Unique identifier of responses that will be returned.

IndexOfResp  override

Returns the index of the specified response item.

function IndexOfResp(aResp: TROResponseItem): Integer

Parameters:

  • aResp: Response item whose index will be returned.

RemoveResp  override

Removes the specified response item from the storage.

procedure RemoveResp(aResp: TROResponseItem)

Parameters:

  • aResp: Response object that will be removed.

RemoveRespByUID  override

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

procedure RemoveRespByUID(aUID: string)

Parameters:

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

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component