Protocols

The following protocols are available globally.

  • Defines a job which can be enqueued.

    See more

    Declaration

    Swift

    public protocol QueueJob: Codable
  • Defines an object which can process a QueueJob of a given type. A JobProcessor instance can be assigned to any JobQueue of the same underlying QueueJob type.

    See more

    Declaration

    Swift

    public protocol JobProcessor: class
  • Provides the means of persisting jobs for a JobQueue. JobQueues which have not been assigned a JobPersister will operate as in-memory only queues.

    See more

    Declaration

    Swift

    public protocol JobPersister: class
  • Defines a generic strategy for how a JobQueue should handle a job which failed to process.

    Attention

    This class must be inherited.
    See more

    Declaration

    Swift

    public protocol JobRetryStrategy