public abstract class PersistenceService<E> extends PersistenceWorker
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_QUEUE_LENGTH |
| Constructor and Description |
|---|
PersistenceService(String persistenceUnit,
PersistenceContext persistenceContext) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onEntityReceived(E entity) |
void |
put(E element)
Inserts the specified element into the service queue, waiting if necessary
for space to become available.
|
void |
shutdown() |
doWork, getPersistenceContext, getPersistenceUnit, resetErrorCountpublic PersistenceService(String persistenceUnit, PersistenceContext persistenceContext)
public abstract void onEntityReceived(E entity)
public void put(E element) throws InterruptedException
element - the element to addInterruptedException - if interrupted while waitingClassCastException - if the class of the specified element
prevents it from being added to this queueNullPointerException - if the specified element is nullIllegalArgumentException - if some property of the specified
element prevents it from being added to this queuepublic void shutdown()
This documentation is licensed by Andrew Bowley under the GPLv3 License.