TROSimpleAsyncResponseStorage

Overview

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

Location

 

constructor Create  override

Standard component constructor

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  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.

Notification  protected override    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure Notification(aComponent: TComponent; Operation: TOperation)

Parameters:

  • aComponent: component
  • Operation: operation

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

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure ROFreeNotification(aComponent: TComponent)

Parameters:

  • aComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure RORemoveFreeNotification(aComponent: TComponent)

Parameters:

  • aComponent: component

SendRemoveNotification  protected    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure SendRemoveNotification(aComponent: TComponent)

Parameters:

  • aComponent: component

 

ResponseItem    (declared in TROAsyncResponseStorage)

Represents a single response item from the storage.

property ResponseItem[Index: Integer]: TROResponseItem read

 

constructor Create  override

Standard component constructor

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  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.

Notification  protected override    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure Notification(aComponent: TComponent; Operation: TOperation)

Parameters:

  • aComponent: component
  • Operation: operation

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 components.

procedure ROFreeNotification(aComponent: TComponent)

Parameters:

  • aComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure RORemoveFreeNotification(aComponent: TComponent)

Parameters:

  • aComponent: component

SendRemoveNotification  protected    (declared in TROComponent)

Forwards notification messages to all owned components.

procedure SendRemoveNotification(aComponent: TComponent)

Parameters:

  • aComponent: component