Class AbstractQueueService

java.lang.Object
io.github.qsy7.queue.impl.scheduling.AbstractQueueService
All Implemented Interfaces:
QueueService

public abstract class AbstractQueueService extends Object implements QueueService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final JobWorkerService
     
    protected final io.github.qsy7.queue.api.model.Worker
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractQueueService(JobWorkerService jobWorkerService, io.github.qsy7.queue.api.model.Worker worker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.github.qsy7.queue.api.model.JobExecution
    cancel(io.github.qsy7.queue.api.model.JobExecution jobExecution)
     
    <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued>
    QueuedType
    cancel(QueuedType queued)
     
    protected abstract <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued>
    QueuedType
    create(QueuedType queued)
     
    <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued>
    QueuedType
    queue(QueuedType queued)
     
    protected abstract io.github.qsy7.queue.api.model.JobExecution
    refresh(io.github.qsy7.queue.api.model.JobExecution jobExecution)
     
    protected abstract <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued>
    QueuedType
    refresh(QueuedType queued)
     
    protected abstract io.github.qsy7.queue.api.model.JobExecution
    update(io.github.qsy7.queue.api.model.JobExecution jobExecution)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.qsy7.queue.api.service.QueueService

    findAbortedJobExecutions, findAssignable, findRecurringAssignable, update, wasCancelled
  • Field Details

    • jobWorkerService

      protected final JobWorkerService jobWorkerService
    • worker

      protected final io.github.qsy7.queue.api.model.Worker worker
  • Constructor Details

    • AbstractQueueService

      public AbstractQueueService(JobWorkerService jobWorkerService, io.github.qsy7.queue.api.model.Worker worker)
  • Method Details

    • cancel

      public <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued> QueuedType cancel(QueuedType queued)
      Specified by:
      cancel in interface QueueService
    • cancel

      public io.github.qsy7.queue.api.model.JobExecution cancel(io.github.qsy7.queue.api.model.JobExecution jobExecution)
      Specified by:
      cancel in interface QueueService
    • queue

      public <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued> QueuedType queue(QueuedType queued)
      Specified by:
      queue in interface QueueService
    • refresh

      protected abstract <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued> QueuedType refresh(QueuedType queued)
    • refresh

      protected abstract io.github.qsy7.queue.api.model.JobExecution refresh(io.github.qsy7.queue.api.model.JobExecution jobExecution)
    • create

      protected abstract <QueuedType extends io.github.qsy7.queue.api.model.AbstractQueued> QueuedType create(QueuedType queued)
    • update

      protected abstract io.github.qsy7.queue.api.model.JobExecution update(io.github.qsy7.queue.api.model.JobExecution jobExecution)