Interface UserCoordinator

All Known Subinterfaces:
CoordinatorManager

public interface UserCoordinator
The user portion of the coordinator API. An implementation of this interface presents each thread with the capability to create and manage coordinators. It is very similar to the OTS Current and JTA UserTransaction.
Since:
1.0.
Version:
$Id: UserCoordinator.java,v 1.2 2005/05/19 12:13:25 nmcl Exp $
Author:
Mark Little (mark.little@arjuna.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    begin(String serviceType)
    Start a new activity.
    void
    begin(String serviceType, int timeout)
    Start a new activity.
    void
    Cancel the activity.
    void
    Confirm the current activity.
     
    int
    Get the timeout value currently associated with activities.
     
    void
    Given a token representing a context, associate it with the current thread of control.
    void
    Set the termination status for the current activity to cancel only.
    void
    setTimeout(int timeout)
    Set the timeout to be associated with all subsequently created activities.
     
    Suspend the current activity from this thread and return the token representing the context, if any, or null otherwise.