Inserts the specified element into this queue, waiting up to the
specified wait time if necessary for space to become available.
Namespace: Hazelcast.Core
Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.12
Syntax
Parameters
- e
- Type: E
the element to add - 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: Booleantrue if successful, or false if the specified waiting time elapses before space is available
Exceptions
Exception | Condition |
---|---|
Exception | if interrupted while waiting |
Remarks
See Also