public interface JobStorage extends Iterable<AbstractJob>
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<AbstractJob> |
add(AbstractJob job)
It is crucial to update the reference to the job returned by this method as
the object itself may be changed by the implementation
|
JobStorage |
filterBy(Client client) |
JobStorage |
filterBy(JobBatchId id) |
com.google.common.base.Optional<AbstractJob> |
get(JobId id) |
MessageStorage |
getMessageStorage() |
com.google.common.base.Optional<AbstractJob> |
remove(JobId jobId)
Should also remove the messages associated with this job from the message storage.
|
forEach, iterator, spliterator
com.google.common.base.Optional<AbstractJob> add(AbstractJob job)
com.google.common.base.Optional<AbstractJob> remove(JobId jobId)
com.google.common.base.Optional<AbstractJob> get(JobId id)
JobStorage filterBy(Client client)
JobStorage filterBy(JobBatchId id)
MessageStorage getMessageStorage()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.