TAsyncFastestClientPool

A TAsyncClientPoolBase implementation which queries multiple servers at the same time and returns the first success response.

The definition of »success« can be customized using the rpcFaultFilter() delegate property. If it is non-null and calling it for an exception set by a failed method invocation returns true, the error is considered to be caused by the RPC layer rather than the application layer, and the next server in the pool is tried. If all clients fail, the operation is marked as failed with a TCompoundOperationException.

Constructors

this
this(Client[] clients)

Members

Functions

addClient
void addClient(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.
removeClient
bool removeClient(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.
reopenTransports
void reopenTransports(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
reopenTransports
bool reopenTransports()
Undocumented in source. Be warned that the author may not have intended to support it.
rpcFaultFilter
bool delegate(Exception) rpcFaultFilter()
Undocumented in source. Be warned that the author may not have intended to support it.
rpcFaultFilter
void rpcFaultFilter(bool delegate(Exception) value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta