SwiftQueueManagerBuilder
public final class SwiftQueueManagerBuilder
Entry point to create a SwiftQueueManager
-
Creator to convert
JobInfo.type
toJob
instanceDeclaration
Swift
public init(creator: JobCreator)
-
Custom way of saving
JobInfo
. Will useUserDefaultsPersister
by defaultDeclaration
Swift
public func set(persister: JobPersister) -> Self
-
Custom way of serializing
JobInfo
. Will useDecodableSerializer
by defaultDeclaration
Swift
public func set(serializer: JobInfoSerializer) -> Self
-
Internal event logger.
NoLogger
by default UseConsoleLogger
to print to the console. This is not recommended since the print is synchronous and it can be and expensive operation. Prefer using a asynchronous logger likeSwiftyBeaver
.Declaration
Swift
public func set(logger: SwiftQueueLogger) -> Self
-
Start jobs directly when they are scheduled or not.
false
by defaultDeclaration
Swift
public func set(isSuspended: Bool) -> Self
-
Deserialize jobs synchronously after creating the
SwiftQueueManager
instance.true
by defaultDeclaration
Swift
public func set(synchronous: Bool) -> Self
-
Get an instance of
SwiftQueueManager
Declaration
Swift
public func build() -> SwiftQueueManager