Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

ScheduledThreadPoolExecutor.DelayedWorkQueue Class Reference

Inherits java::util::AbstractCollection< Runnable >.

List of all members.


Detailed Description

An annoying wrapper class to convince generics compiler to use a DelayQueue<ScheduledFutureTask> as a BlockingQueue<Runnable>.

Public Member Functions

Runnable poll ()
Runnable peek ()
Runnable take () throws InterruptedException
Runnable poll (long timeout, TimeUnit unit) throws InterruptedException
boolean add (Runnable x)
boolean offer (Runnable x)
void put (Runnable x)
boolean offer (Runnable x, long timeout, TimeUnit unit)
Runnable remove ()
Runnable element ()
void clear ()
int drainTo (Collection<?super Runnable > c)
int drainTo (Collection<?super Runnable > c, int maxElements)
int remainingCapacity ()
boolean remove (Object x)
boolean contains (Object x)
int size ()
boolean isEmpty ()
Object[] toArray ()
Iterator< Runnable > iterator ()

Package Functions

public< T > T[] toArray (T[] array)

Private Attributes

final DelayQueue
< ScheduledFutureTask > 
dq = new DelayQueue<ScheduledFutureTask>()

Member Function Documentation

Runnable poll (  ) 

Runnable peek (  ) 

Runnable take (  )  throws InterruptedException

Runnable poll ( long  timeout,
TimeUnit  unit 
) throws InterruptedException

boolean add ( Runnable  x  ) 

boolean offer ( Runnable  x  ) 

void put ( Runnable  x  ) 

boolean offer ( Runnable  x,
long  timeout,
TimeUnit  unit 
)

Runnable remove (  ) 

Runnable element (  ) 

void clear (  ) 

int drainTo ( Collection<?super Runnable >  c  ) 

int drainTo ( Collection<?super Runnable >  c,
int  maxElements 
)

int remainingCapacity (  ) 

boolean remove ( Object  x  ) 

boolean contains ( Object  x  ) 

int size (  ) 

boolean isEmpty (  ) 

Object [] toArray (  ) 

public<T> T [] toArray ( T[]  array  )  [package]

Iterator<Runnable> iterator (  ) 


Member Data Documentation

final DelayQueue<ScheduledFutureTask> dq = new DelayQueue<ScheduledFutureTask>() [private]