Package org.epics.pvaccess.util
Class Mailbox<E>
- java.lang.Object
-
- org.epics.pvaccess.util.Mailbox<E>
-
- Type Parameters:
E
- element type.
public class Mailbox<E> extends Object
- Author:
- msekoranja
-
-
Constructor Summary
Constructors Constructor Description Mailbox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
isEmpty()
void
put(E msg)
E
take(long timeout)
void
wakeup()
-
-
-
Method Detail
-
put
public void put(E msg)
-
take
public E take(long timeout) throws InterruptedException
- Throws:
InterruptedException
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
wakeup
public void wakeup()
-
-