Class QueueProcessor<T>
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.inmemoryqueue.QueueProcessor<T>
-
- Direct Known Subclasses:
FileBucketTarCreator
,WriteOrderCreator
public abstract class QueueProcessor<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QueueProcessor(java.lang.String workerName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addFirst(T message)
void
addToQueue(T message)
protected abstract void
processMessage(T message)
void
startListener()
-
-
-
Method Detail
-
startListener
public void startListener()
-
addToQueue
public void addToQueue(T message)
-
addFirst
public void addFirst(T message)
-
processMessage
protected abstract void processMessage(T message) throws QueueProcessingException, java.lang.InterruptedException
- Throws:
QueueProcessingException
java.lang.InterruptedException
-
-