Interface AsyncQuery
- Namespace
- IceGrid
- Assembly
- IceGrid.dll
Finds well-known Ice objects registered with the IceGrid registry.
[SliceTypeId("::IceGrid::Query")]
public interface AsyncQuery : Object
- Inherited Members
Remarks
This Async interface maps each Slice operation to an asynchronous method that returns a Task. Your servant class implements this interface by deriving fromAsyncQueryDisp_ or from the Disp_ class for a derived interface.
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::Query.
Methods
findAllObjectsByTypeAsync(string, Current)
Finds all the well-known objects with the given type.
Task<ObjectPrx?[]> findAllObjectsByTypeAsync(string type, Current current)
Parameters
Returns
- Task<ObjectPrx[]>
A list of proxies to the well-known objects with the specified type. Can be empty.
findAllReplicasAsync(ObjectPrx?, Current)
Finds all the replicas of a well-known object.
Task<ObjectPrx?[]> findAllReplicasAsync(ObjectPrx? proxy, Current current)
Parameters
proxyObjectPrxA proxy that identifies the well-known object.
currentCurrentThe Current object for the dispatch.
Returns
- Task<ObjectPrx[]>
A list of proxies to the replicas of the well-known object specified by
proxy. Can be empty.
findObjectByIdAsync(Identity, Current)
Finds a well-known object by identity.
Task<ObjectPrx?> findObjectByIdAsync(Identity id, Current current)
Parameters
Returns
findObjectByTypeAsync(string, Current)
Finds a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.
Task<ObjectPrx?> findObjectByTypeAsync(string type, Current current)
Parameters
Returns
- Task<ObjectPrx>
A proxy to a well-known object with the specified type, or null if no such object is registered.
findObjectByTypeOnLeastLoadedNodeAsync(string, LoadSample, Current)
Finds a well-known object by type on the least-loaded node. If the registry does not know which node hosts the object (for example, because the object was registered with a direct proxy), the registry assumes the object is hosted on a node that has a load average of 1.0.
Task<ObjectPrx?> findObjectByTypeOnLeastLoadedNodeAsync(string type, LoadSample sample, Current current)
Parameters
typestringThe object type.
sampleLoadSampleThe sampling interval.
currentCurrentThe Current object for the dispatch.