Class LinkedBlockingQueue<E>
- Namespace
- Java.Util.Concurrent
- Assembly
- MASES.JNet.dll
public class LinkedBlockingQueue<E> : AbstractQueue<E>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<E>, IEnumerable, IAsyncEnumerable<E>, IIterable<E>, ICollection<E>
Type Parameters
E
- Inheritance
-
JVMBridgeBaseEnumerable<Iterable<E>, E>JNetAsyncEnumerable<Iterable<E>, E>Iterable<E>Collection<E>LinkedBlockingQueue<E>
- Implements
-
IEnumerable<E>IIterable<E>ICollection<E>
- Inherited Members
-
JVMBridgeBase<Iterable<E>>.SExecuteWithSignatureArray<T>(IJavaType, string, string, params object[])
- Extension Methods
Constructors
LinkedBlockingQueue()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public LinkedBlockingQueue()
LinkedBlockingQueue(Collection<E>)
public LinkedBlockingQueue(Collection<E> arg0)
Parameters
arg0
Collection<E>
LinkedBlockingQueue(int)
public LinkedBlockingQueue(int arg0)
Parameters
LinkedBlockingQueue(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public LinkedBlockingQueue(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
DrainTo<Arg0objectSuperE>(Collection<Arg0objectSuperE>)
public int DrainTo<Arg0objectSuperE>(Collection<Arg0objectSuperE> arg0) where Arg0objectSuperE : E
Parameters
arg0
Collection<Arg0objectSuperE>
Returns
Type Parameters
Arg0objectSuperE
E
DrainTo<Arg0objectSuperE>(Collection<Arg0objectSuperE>, int)
public int DrainTo<Arg0objectSuperE>(Collection<Arg0objectSuperE> arg0, int arg1) where Arg0objectSuperE : E
Parameters
arg0
Collection<Arg0objectSuperE>arg1
int
Returns
Type Parameters
Arg0objectSuperE
E
Offer(E, long, TimeUnit)
public bool Offer(E arg0, long arg1, TimeUnit arg2)
Parameters
Returns
Exceptions
Poll(long, TimeUnit)
public E Poll(long arg0, TimeUnit arg1)
Parameters
Returns
- E
E
Exceptions
Put(E)
public void Put(E arg0)
Parameters
arg0
EE
Exceptions
RemainingCapacity()
public int RemainingCapacity()
Returns
Take()
public E Take()
Returns
- E
E
Exceptions
Operators
implicit operator Serializable(LinkedBlockingQueue<E>)
Converter from LinkedBlockingQueue<E> to Serializable
public static implicit operator Serializable(LinkedBlockingQueue<E> t)
Parameters
t
LinkedBlockingQueue<E>
Returns
implicit operator BlockingQueue<E>(LinkedBlockingQueue<E>)
Converter from LinkedBlockingQueue<E> to BlockingQueue<E>
public static implicit operator BlockingQueue<E>(LinkedBlockingQueue<E> t)
Parameters
t
LinkedBlockingQueue<E>
Returns
implicit operator LinkedBlockingQueue(LinkedBlockingQueue<E>)
Converter from LinkedBlockingQueue<E> to LinkedBlockingQueue
public static implicit operator LinkedBlockingQueue(LinkedBlockingQueue<E> t)
Parameters
t
LinkedBlockingQueue<E>