YDBCloudCoreOperationStatus

NS_ENUM(NSInteger, YDBCloudCoreOperationStatus) {
	
	/**
	 * Pending means that the operation is queued in the pipeline,
	 * and may be released to the delegate when ready.
	 * 
	 * If an operation fails, the PipelineDelegate may re-queue the operation by marking its status as pending.
	 * This gives control over the operation back to the pipeline,
	 * and it will dispatch it to the PipelineDelegate again when ready.
	 */
	YDBCloudOperationStatus_Pending = 0,
	
	/**
	 * The operation has been started.
	 * I.e. has been handed to the PipelineDelegate via 'startOperation::'.
	 */
	YDBCloudOperationStatus_Active,
	
	/**
	 * Until an operation is marked as either completed or skipped,
	 * the pipeline will act as if the operation is still in progress.
	 * 
	 * In order to mark an operation as completed or skipped, the following must be used:
	 * - [YapDatabaseCloudCoreTransaction completeOperation:]
	 * - [YapDatabaseCloudCoreTransaction skipOperation:]
	 * 
	 * These methods allow the system to delete the operation from the internal sqlite table.
	 */
	YDBCloudOperationStatus_Completed,
	YDBCloudOperationStatus_Skipped,
}

Undocumented

  • Pending means that the operation is queued in the pipeline, and may be released to the delegate when ready.

    If an operation fails, the PipelineDelegate may re-queue the operation by marking its status as pending. This gives control over the operation back to the pipeline, and it will dispatch it to the PipelineDelegate again when ready.

    Declaration

    Objective-C

    YDBCloudOperationStatus_Pending = 0

    Swift

    case operationStatus_Pending = 0
  • The operation has been started. I.e. has been handed to the PipelineDelegate via ‘startOperation::’.

    Declaration

    Objective-C

    YDBCloudOperationStatus_Active

    Swift

    case operationStatus_Active = 1
  • Until an operation is marked as either completed or skipped, the pipeline will act as if the operation is still in progress.

    In order to mark an operation as completed or skipped, the following must be used:

    • [YapDatabaseCloudCoreTransaction completeOperation:]
    • [YapDatabaseCloudCoreTransaction skipOperation:]

    These methods allow the system to delete the operation from the internal sqlite table.

    Declaration

    Objective-C

    YDBCloudOperationStatus_Completed

    Swift

    case operationStatus_Completed = 2
  • Until an operation is marked as either completed or skipped, the pipeline will act as if the operation is still in progress.

    In order to mark an operation as completed or skipped, the following must be used:

    • [YapDatabaseCloudCoreTransaction completeOperation:]
    • [YapDatabaseCloudCoreTransaction skipOperation:]

    These methods allow the system to delete the operation from the internal sqlite table.

    Declaration

    Objective-C

    YDBCloudOperationStatus_Skipped

    Swift

    case operationStatus_Skipped = 3