Package de.coreengine.util
Class BlockedList<T>
- java.lang.Object
-
- de.coreengine.util.BlockedList<T>
-
- Type Parameters:
T
- Type of the list data
public class BlockedList<T> extends Object
Linked list that is securedby a semaphore- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description BlockedList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T str)
void
clear()
Clearing listvoid
get(LinkedList<T> out)
Getting message from list and storing into out
-
-
-
Method Detail
-
add
public void add(T str)
- Parameters:
str
- Adding message to list
-
get
public void get(LinkedList<T> out)
Getting message from list and storing into out- Parameters:
out
- List to store messages
-
clear
public void clear()
Clearing list
-
-