T
- public abstract class IStructure<T> extends java.lang.Object implements IWorkStealing
Modifier and Type | Class and Description |
---|---|
protected static class |
IStructure.Backoff
Backoff algorithm for delays
|
protected static class |
IStructure.Node<T>
Internal data structure for storing objects and link them together
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
abort |
Constructor and Description |
---|
IStructure() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(T item)
add a object of type T
|
void |
add(T item,
int i)
add a object of type T
|
T |
get(int i)
retrieve a object of type T
|
abstract boolean |
isEmpty()
Method to tell if the data structure is empty (contains no elements).
|
void |
registerThread() |
abstract T |
remove()
retrieve a object of type T
|
void |
shutdown() |
public abstract void add(T item)
FullException
public void add(T item, int i)
FullException
public abstract T remove()
public T get(int i)
public abstract boolean isEmpty()
public void shutdown()
public void registerThread()
registerThread
in interface IWorkStealing