| IQueueTPoll Method (Int64, TimeUnit) |
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax T Poll(
long timeout,
TimeUnit unit
)
Function Poll (
timeout As Long,
unit As TimeUnit
) As T
T Poll(
long long timeout,
TimeUnit unit
)
abstract Poll :
timeout : int64 *
unit : TimeUnit -> 'T
Parameters
- timeout
- Type: SystemInt64
how long to wait before giving up, in units of
unit - unit
- Type: Hazelcast.CoreTimeUnit
a TimeUnit determining how to interpret the
timeout parameter
Return Value
Type:
T
the head of this queue, or
null if the
specified waiting time elapses before an element is available
Remarks
Retrieves and removes the head of this queue, waiting up to the
specified wait time if necessary for an element to become available.
See Also