Takes (removes) an entry matching the specified id query from the space.
Blocks up to the specified timeout (if any) until a matching entry is available.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
T TakeById<T>( IdQuery<T> idQuery, ITransaction tx, long timeout )
Function TakeById(Of T) ( _ idQuery As IdQuery(Of T), _ tx As ITransaction, _ timeout As Long _ ) As T
generic<typename T> T TakeById( IdQuery<T>^ idQuery, ITransaction^ tx, long long timeout )
Generic Template Parameters
- T
- Type of expected result entry.
Parameters
- idQuery (IdQuery<(Of <(<'T>)>)>)
- The query to search by.
- tx (ITransaction)
- The transaction which this operation will participate in.
- timeout (Int64)
- Maximum time to wait for a matching entry (in milliseconds).
Return Value
Result entry from space (null if not found).