TROBaseActiveEventChannel Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
TROBaseActiveEventChannel is a base class that extends TROTransportChannel functionality and allows to support active events via implementing of IROActiveEventChannel.
You will not use this class directly because it doesn't implement abstract methods of TROTransportChannel.
See also Event Sinks and Server Callbacks
Location
uROClient.pas
- Ancestry: TComponent | TROComponent | TROBaseConnection | TROTransportChannel | TROBaseActiveEventChannel | Descendants
Implemented interfaces
Properties
| Busy (declared in TROTransportChannel) |
|---|
|
Informs whether the channel is currently busy executing a remote request (true) or not (false). Most channels (except most notably the TROSuperTCPChannel) are only capable of performing one request at a time; if a second request is attempted while the channel is Busy, an EROChannelBusy exception will be raised.
|
| CurrentLocator (declared in TROTransportChannel) |
|
Returns which of the fail-over/load balancing servers configured in the ServerLocators is currently active. Depending on the DispatchOptions defined, this value might change with each request, or only if the current server fails.
|
| DispatchOptions (declared in TROTransportChannel) |
|
Configures the available fail-over and load balancing options provided by the RemObjects SDK. By default, channels are set up to talk to one specific server only. Two independent options are available to provide fail-over and load balancing:
Enabling any of these options obviously requires the server to be implemented in a stateless way, so that it does not depend on all requests from a client going to the same server. This implies using a class factory different from Per-Client and, if sessions are used, a session manager that allows sharing of session state between servers.
|
| Encryption obsolete (declared in TROBaseConnection) |
|
This is DES based enscryption, it is obsolete because works only for Delphi. Use message envelope AES Encryption Envelope instead.
|
| EventReceiverList protected |
|
Provides a list of registered IROEventReceiver
|
| FaultToleranceLocatorIdx (declared in TROTransportChannel) |
|
|
| LoadBalancerLocatorIdx (declared in TROTransportChannel) |
|
|
| ProbeFrequency (declared in TROTransportChannel) |
|
Sets at what intervals, in milliseconds, the channel will probe the servers configured in ServerLocators for availability. The default value is 60,000 (60 seconds). See the ProbeServers property for a more detailed description. Although somewhat misnamed, this property defines the Interval between probes, not the actual probing Frequency. The property name is persisted for backward compatibility.
|
| ProbeServers (declared in TROTransportChannel) |
|
Toggles whether the channel will continuously probe the servers configured in ServerLocators for availability. If enabled (true), the channel will ping all servers at a regular interval to determine if they are reachable. If a server fails to respond, it will be disabled for future calls until a later probe can reach it again. The interval between probes can be configured using the ProbeFrequency property. By default, server probing is turned off.
|
| ServerLocators (declared in TROTransportChannel) |
|
Optionally, this collection property can be filled to contain a list of possible servers to be used for fail-over or load balancing purposes. Depending on the settings configured in DispatchOptions, the channel will automatically spread calls over the available servers, or fall back to another server if one fails.
|
| SynchronizedProbing (declared in TROTransportChannel) |
|
Determines whether server probing happens in the context of the main VCL thread (true, default) or in a background worker thread. See the ProbeServers property for a more detailed description.
|
| TargetUri (declared in TROTransportChannel) |
|
|
| TargetUrl protected (declared in TROTransportChannel) |
|
|
| ThreadSafe protected (declared in TROTransportChannel) |
|
|
Class Methods
| ChannelMatchingTargetUri (declared in TROTransportChannel) |
|---|
|
|
| ChannelMatchingTargetUrl (declared in TROTransportChannel) |
|
|
Instance Methods
| constructor Create override |
|---|
|
|
| destructor Destroy override |
|
|
| Assign override (declared in TROTransportChannel) |
|
|
| AsyncException protected virtual (declared in TROTransportChannel) |
|
|
| BeforeDispatch protected virtual (declared in TROTransportChannel) |
|
|
| CallbackEvents protected |
|
Sends event to each registered IROEventReceiver
|
| ChangeServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| CheckProperties virtual (declared in TROTransportChannel) |
|
|
| DecodeEventStream protected (declared in TROTransportChannel) |
|
|
| Dispatch (IROMessage) protected reintroduce overload (declared in TROTransportChannel) |
|
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoAfterProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoAfterProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoBeforeProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoException protected virtual (declared in TROTransportChannel) |
|
|
| DoLoginNeeded protected virtual (declared in TROTransportChannel) |
|
|
| DoReceiveStreamEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoSendStreamEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoServerLocatorAssignmentEvent protected virtual (declared in TROTransportChannel) |
|
|
| GetServerLocatorClass protected virtual (declared in TROTransportChannel) |
|
|
| GetTargetUri protected virtual (declared in TROTransportChannel) |
|
|
| GetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| GetTransportObject protected virtual abstract (declared in TROTransportChannel) |
|
|
| InitServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| intChangeServerLocator protected (declared in TROTransportChannel) |
|
|
| IntDispatch protected virtual abstract (declared in TROTransportChannel) |
|
|
| intInitServerLocator protected (declared in TROTransportChannel) |
|
|
| IntSetServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| IsEncryptionUsed protected (declared in TROTransportChannel) |
|
|
| Loaded protected override (declared in TROTransportChannel) |
|
|
| Notification protected override |
|
Responds to notifications that components are being created or destroyed.
|
| Probe protected (declared in TROTransportChannel) |
|
|
| ProbeAll protected (declared in TROTransportChannel) |
|
|
| RegisterEventReceiver protected virtual |
|
Adds IROEventReceiver to the EventReceiverList
|
| ResetProbingClone protected virtual (declared in TROTransportChannel) |
|
|
| RetrieveMetadata protected virtual (declared in TROTransportChannel) |
|
|
| RetrieveRODL protected (declared in TROTransportChannel) |
|
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| SetServerLocator protected (declared in TROTransportChannel) |
|
|
| SetTargetUri protected virtual (declared in TROTransportChannel) |
|
|
| SetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| TriggerProgress protected virtual (declared in TROTransportChannel) |
|
|
| UnregisterEventReceiver protected virtual |
|
Removed IROEventReceiver from EventReceiverList
|
| UnregisterEventReceivers protected |
|
Removes all items from EventReceiverList
|
Events
| onAfterEncrypt obsolete (declared in TROBaseConnection) |
|---|
|
|
| OnAfterProbingServer (declared in TROTransportChannel) |
|
Fires after the channel is done probing a specific server for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAfterProbingServers (declared in TROTransportChannel) |
|
Fires after the channel is done probing all servers for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAsyncException (declared in TROTransportChannel) |
|
|
| onBeforeDecrypt obsolete (declared in TROBaseConnection) |
|
|
| OnBeforeProbingServer (declared in TROTransportChannel) |
|
Fires before the channel starts probing a specific server for availability. You can use this event to:
|
| OnBeforeProbingServers (declared in TROTransportChannel) |
|
Fires before the channel starts probing all servers for availability. You can use this event:
|
| OnException (declared in TROTransportChannel) |
|
Fires if an exception is raised during the execution of a remote request. This could be an exception returned from the server, a communication problem or an error within the client. Depending on the type of error, your event handler can try to rectify the problem, and set aRetry to true to have the channel try and perform the request again. For example, an application could show a dialog asking the user to confirm if his internet connection is available, with Cancel and Retry buttons. If aRetry is set to true and the call succeeds at the second attempt, the call will return to the original code that initiated the request, as if the exception never happened.
|
| OnFailure (declared in TROTransportChannel) |
|
|
| OnLoginNeeded (declared in TROTransportChannel) |
|
Fires if an EROSessionNotFound (or the descendant SessionNotFoundException) exception is raised during the execution of a remote request. This usually indicates that the server cannot authenticate the client or that the session has expired. The most common use for this event is to perform a call to a special Login service provided by the server (possibly after prompting the user to enter username and password), and to set the aRetry parameter to true if login was successful.
|
| OnProgress (declared in TROTransportChannel) |
|
This event fires as the channel is transferring data for a request or response to or from the server, informing of the current progress. It can be used to keep the user interface updated during lengthy transfers,e.g. by showing a progress bar or the remaining transfer volume. Note: the accuracy and frequency of calls to OnProgress depends on the channel type; since channels transport data packets in different sized chunks (or even all-at-once), OnProgress might show a very fine progress for some channels, while jumping from 0 to 100% in one step with others.
|
| OnReceiveStream (declared in TROTransportChannel) |
|
Fires after a stream with a response message has been received from the server. Use this event handler to inspect and possibly modify the stream, before it continues to be processed by the higher levels of the RemObjects SDK framework.
|
| OnSendStream (declared in TROTransportChannel) |
|
Fires just as a stream with a request message will be sent to the server. The event handler can inspect and possibly modify the stream, before it continues to be sent off to the server.
|
| OnServerLocatorAssignment (declared in TROTransportChannel) |
|
Fires before changing of a server locator
|
Descendants
See Also
- TROTransportChannel
- IROActiveEventChannel
- IROEventReceiver
- Event Sinks and Server Callbacks
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript