TRORTTIEventWriter<T>

Overview

Location


 

constructor Create (IROMessage, Boolean)    (declared in TROEventProxy)

Creates a new TROEventProxy object with the specified message aMessage. If the CloneMessage is true, the constructor creates a copy of the aMessage and saves it in the private variable fMessage. If the CloneMessage is false, the fMessage saves a reference of the aMessage.

constructor Create(const aMessage: IROMessage; aCloneMessage: Boolean)

Parameters:

  • aMessage: Specified message
  • aCloneMessage: When true, a copy of the aMessage will be saved, otherwise a reference to the aMessage will be saved.

constructor Create (IROMessage, IROEventRepository)  reintroduce    (declared in TROEventWriter)

Creates a new instance with the specified event message aMessage and the specified repository aRepository.

constructor Create(const aMessage: IROMessage; const aRepository: IROEventRepository)

Parameters:

  • aMessage: Event message.
  • aRepository: Specified repository that will store the event data and additional information.

ClientID

Client identificator

property ClientID: TGuid read write

CloneMessage    (declared in TROEventProxy)

Controls which message instance will be used for remote requests. The value of this property affects TROBaseProxy.__GetMessage behavior, when set to true it will clone the message instance every time before making a remote request. Cloning the message helps to avoid conflicts in multithreaded environment (e.g. when TROEventReceiver is used).

property CloneMessage: Boolean read write

Event  protected

function Event: T

ExcludeSender  protected    (declared in TROEventWriter)

Determines the need to use the sender session in the processing of the current event. If ExcludeSender is true (default value), the sender will not receive the event message, if ExcludeSender is false, the sender will receive the event message. For example: In the chat, you can exclude the client sender session from the mailing list.

property ExcludeSender: Boolean read write

ExcludeSessionList  protected    (declared in TROEventWriter)

Determines the need to use the SessionList in the processing of the current event. If ExcludeSessionList is false, the SessionList should be used, if ExcludeSessionList is true, the SessionList should not be used.

property ExcludeSessionList: Boolean read write

GetExcludeSessionList  protected    (declared in TROEventWriter)

Gets the ExcludeSessionList property.

function GetExcludeSessionList: Boolean

GetSessionList  protected    (declared in TROEventWriter)

Gets the SessionList property.

function GetSessionList: TStrings

NewInstance  override    (declared in TROInterfacedObject)

Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.

class function NewInstance: TObject

RefCount    (declared in TROInterfacedObject)

Provides read-only access to the reference counter. When this value reaches zero, the object is freed.

property RefCount: Integer read

Repository  protected    (declared in TROEventWriter)

Defines the repository that is associated with the current TROEventWriter object. The Repository is needed to store the event data with additional information.

property Repository: IROEventRepository read

SessionList  protected    (declared in TROEventWriter)

Contains the list of the clients (their session GUID) that will receive the event message, if the ExcludeSessionList property equals false. For example: In the chat, the SessionList can contain the list of client sessions that will receive the message from the server.

property SessionList: TStrings read

SetExcludeSessionList  protected    (declared in TROEventWriter)

Sets the property ExcludeSessionList with specified Value.

procedure SetExcludeSessionList(const Value: Boolean)

Parameters:

  • Value: False means that the SessionList should be used in the event processing, true that it should not be used.

 

ClientID

Client identificator

property ClientID: TGuid read write

CloneMessage    (declared in TROEventProxy)

Controls which message instance will be used for remote requests. The value of this property affects TROBaseProxy.__GetMessage behavior, when set to true it will clone the message instance every time before making a remote request. Cloning the message helps to avoid conflicts in multithreaded environment (e.g. when TROEventReceiver is used).

property CloneMessage: Boolean read write

ExcludeSender  protected    (declared in TROEventWriter)

Determines the need to use the sender session in the processing of the current event. If ExcludeSender is true (default value), the sender will not receive the event message, if ExcludeSender is false, the sender will receive the event message. For example: In the chat, you can exclude the client sender session from the mailing list.

property ExcludeSender: Boolean read write

ExcludeSessionList  protected    (declared in TROEventWriter)

Determines the need to use the SessionList in the processing of the current event. If ExcludeSessionList is false, the SessionList should be used, if ExcludeSessionList is true, the SessionList should not be used.

property ExcludeSessionList: Boolean read write

RefCount    (declared in TROInterfacedObject)

Provides read-only access to the reference counter. When this value reaches zero, the object is freed.

property RefCount: Integer read

Repository  protected    (declared in TROEventWriter)

Defines the repository that is associated with the current TROEventWriter object. The Repository is needed to store the event data with additional information.

property Repository: IROEventRepository read

SessionList  protected    (declared in TROEventWriter)

Contains the list of the clients (their session GUID) that will receive the event message, if the ExcludeSessionList property equals false. For example: In the chat, the SessionList can contain the list of client sessions that will receive the message from the server.

property SessionList: TStrings read

 

NewInstance  override    (declared in TROInterfacedObject)

Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.

class function NewInstance: TObject

 

constructor Create (IROMessage, Boolean)    (declared in TROEventProxy)

Creates a new TROEventProxy object with the specified message aMessage. If the CloneMessage is true, the constructor creates a copy of the aMessage and saves it in the private variable fMessage. If the CloneMessage is false, the fMessage saves a reference of the aMessage.

constructor Create(const aMessage: IROMessage; aCloneMessage: Boolean)

Parameters:

  • aMessage: Specified message
  • aCloneMessage: When true, a copy of the aMessage will be saved, otherwise a reference to the aMessage will be saved.

constructor Create (IROMessage, IROEventRepository)  reintroduce    (declared in TROEventWriter)

Creates a new instance with the specified event message aMessage and the specified repository aRepository.

constructor Create(const aMessage: IROMessage; const aRepository: IROEventRepository)

Parameters:

  • aMessage: Event message.
  • aRepository: Specified repository that will store the event data and additional information.

Event  protected

function Event: T

GetExcludeSessionList  protected    (declared in TROEventWriter)

Gets the ExcludeSessionList property.

function GetExcludeSessionList: Boolean

GetSessionList  protected    (declared in TROEventWriter)

Gets the SessionList property.

function GetSessionList: TStrings

SetExcludeSessionList  protected    (declared in TROEventWriter)

Sets the property ExcludeSessionList with specified Value.

procedure SetExcludeSessionList(const Value: Boolean)

Parameters:

  • Value: False means that the SessionList should be used in the event processing, true that it should not be used.