Operation


Object Hierarchy:

Object hierarchy for Operation

Description:

[ CCode ( type_id = "camel_operation_get_type ()" ) ]
public class Operation : Cancellable

Progress reporting and cancellation for long-running tasks.

Operation is a bi-directional rendezvous mechanism used to communicate status information from long-running Camel tasks back to the calling application, and to allow the application to cancel those tasks.

The typical usage pattern is:

  1. Create a Operation with a status callback.
  2. Push it onto the current thread with push_message / or use it as a Cancellable passed to async operations.
  3. Long-running Camel functions report progress via camel_operation_progress and check for cancellation via the Cancellable interface.
  4. The client can cancel the operation by calling cancel on the Operation (which is a Cancellable subclass).

Status messages follow a push/pop model: push_message starts a new operation description (emitting the "status" signal), and camel_operation_pop_message ends it, restoring the previous description. camel_operation_progress reports percentage-based progress within the current message.


Namespace: Camel
Package: camel-1.2

Content:

Static methods:

Creation methods:

Methods:

Signals:

Inherited Members: