Executes the OQL Query on the cache server with the specified
timeout and returns the results.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1
Syntax
| C# |
|---|
public ISelectResults Execute( uint timeout ) |
| Visual Basic (Declaration) |
|---|
Public Function Execute ( _ timeout As UInteger _ ) As ISelectResults |
| Visual C++ |
|---|
public: ISelectResults^ Execute ( unsigned int timeout ) |
Parameters
- timeout
- UInt32
The time (in seconds) to wait for query response. This should be less than or equal to 2^31/1000 i.e. 2147483.
Return Value
An ISelectResults object which can either be a StructSet or a StructSet.
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalArgumentException | if timeout parameter is greater than 2^31/1000. |
| GemStone.GemFire.Cache..::QueryException | if some query error occurred at the server. |
| GemStone.GemFire.Cache..::IllegalStateException | if some other error occurred. |
| GemStone.GemFire.Cache..::NotConnectedException | if no java cache server is available |
See Also
Query Class
GemStone.GemFire.Cache Namespace