Interface QueueRepository
- All Known Implementing Classes:
QueueRepositoryImpl
,TapeCatalogRepository
public interface QueueRepository
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(QueueMessageEntity queueMessageEntity) void
addIfAbsent
(List<QueryCriteria> criteria, QueueMessageEntity queueMessageEntity) long
Make QueueMessageEntity COMPLETEDlong
long
Mark queueEntity as Errorlong
Mark queueEntity as READY<T> Optional<T>
receive
(QueueMessageType messageType) <T> Optional<T>
receive
(QueueMessageType messageType, boolean usePriority) <T> Optional<T>
receive
(org.bson.conversions.Bson inQuery, QueueMessageType messageType) <T> Optional<T>
receive
(org.bson.conversions.Bson inQuery, QueueMessageType messageType, boolean usePriority) long
void
tryCancelIfNotStarted
(List<QueryCriteria> criteria)
-
Method Details
-
add
- Throws:
QueueException
-
addIfAbsent
void addIfAbsent(List<QueryCriteria> criteria, QueueMessageEntity queueMessageEntity) throws QueueException - Throws:
QueueException
-
tryCancelIfNotStarted
- Throws:
QueueException
-
remove
- Throws:
QueueException
-
complete
Make QueueMessageEntity COMPLETED- Parameters:
queueMessageId
-- Returns:
- Throws:
QueueException
-
markError
Mark queueEntity as Error- Parameters:
queueMessageId
-- Returns:
- Throws:
QueueException
-
markReady
Mark queueEntity as READY- Parameters:
queueMessageId
-- Returns:
- Throws:
QueueException
-
initializeOnBootstrap
long initializeOnBootstrap() -
receive
- Throws:
QueueException
-
receive
- Throws:
QueueException
-
receive
<T> Optional<T> receive(org.bson.conversions.Bson inQuery, QueueMessageType messageType) throws QueueException - Throws:
QueueException
-
receive
<T> Optional<T> receive(org.bson.conversions.Bson inQuery, QueueMessageType messageType, boolean usePriority) throws QueueException - Throws:
QueueException
-