SwiftQueueManagerBuilder
public final class SwiftQueueManagerBuilder
Entry point to create a SwiftQueueManager
-
Creator to convert
JobInfo.typetoJobinstanceDeclaration
Swift
public init(creator: JobCreator) -
Custom way of saving
JobInfo. Will useUserDefaultsPersisterby defaultDeclaration
Swift
public func set(persister: JobPersister) -> Self -
Custom way of serializing
JobInfo. Will useDecodableSerializerby defaultDeclaration
Swift
public func set(serializer: JobInfoSerializer) -> Self -
Internal event logger.
NoLoggerby default UseConsoleLoggerto 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.
falseby defaultDeclaration
Swift
public func set(isSuspended: Bool) -> Self -
Deserialize jobs synchronously after creating the
SwiftQueueManagerinstance.trueby defaultDeclaration
Swift
public func set(synchronous: Bool) -> Self -
Get an instance of
SwiftQueueManagerDeclaration
Swift
public func build() -> SwiftQueueManager
SwiftQueueManagerBuilder Class Reference