/** * Get the timeout value currently associated with activities. * * @exception SystemException Thrown if any error occurs. * * @return the timeout value in seconds, or 0 if no application specified * timeout has been provided. */ public int getTimeout () throws SystemException { return UserActivityFactory.userActivity().getTimeout(); }
/** * @return the token representing the current activity context hierarchy, * or null if there is none associated with the invoking thread. * * @exception SystemException Thrown if any error occurs. */ public ActivityHierarchy currentActivity () throws SystemException { return UserActivityFactory.userActivity().currentActivity(); }
/** * Suspend the current activity from this thread and return the token * representing the context, if any, or null otherwise. Once called, the * thread will have no activities associated with it. * * @exception SystemException Thrown if any error occurs. * * @return the token representing the current context, if any, or null * otherwise. */ public ActivityHierarchy suspend () throws SystemException { return UserActivityFactory.userActivity().suspend(); }
/** * Start a new activity. If there is already an activity associated * with the thread then it will be nested. An implementation specific * timeout will be associated with the activity (which may be no * timeout). * * @exception WrongStateException Thrown if the any currently associated * activity is in a state that does not allow a new activity to be * enlisted. * @exception SystemException Thrown in any other situation. */ public void begin (String coordinationType) throws WrongStateException, SystemException { UserActivityFactory.userActivity().start(coordinationType); }
public ContextManager () { _manager = ActivityManagerFactory.activityManager(); }
/** * Suspend the current activity from this thread and return the token * representing the context, if any, or null otherwise. Once called, the * thread will have no activities associated with it. * * @exception SystemException Thrown if any error occurs. * * @return the token representing the current context, if any, or null * otherwise. */ public ActivityHierarchy suspend () throws SystemException { return UserActivityFactory.userActivity().suspend(); }
/** * @return the token representing the current activity context hierarchy, or * null if there is none associated with the invoking thread. * * @exception SystemException * Thrown if any error occurs. */ public ActivityHierarchy currentActivity () throws SystemException { return UserActivityFactory.userActivity().currentActivity(); }
/** * Get the timeout value currently associated with activities. * * @exception SystemException Thrown if any error occurs. * * @return the timeout value in seconds, or 0 if no application specified * timeout has been provided. */ public int getTimeout () throws SystemException { return UserActivityFactory.userActivity().getTimeout(); }
/** * Start a new activity. If there is already an activity associated * with the thread then it will be nested. An implementation specific * timeout will be associated with the activity (which may be no * timeout). * * @exception WrongStateException Thrown if the any currently associated * activity is in a state that does not allow a new activity to be * enlisted. * @exception SystemException Thrown in any other situation. */ public void begin (String coordinationType) throws WrongStateException, SystemException { UserActivityFactory.userActivity().start(coordinationType); }
public ContextManager () { _manager = ActivityManagerFactory.activityManager(); }
/** * Suspend the current activity from this thread and return the token * representing the context, if any, or null otherwise. Once called, the * thread will have no activities associated with it. * * @exception SystemException * Thrown if any error occurs. * * @return the token representing the current context, if any, or null * otherwise. */ public ActivityHierarchy suspend () throws SystemException { return UserActivityFactory.userActivity().suspend(); }
/** * @return the token representing the current activity context hierarchy, * or null if there is none associated with the invoking thread. * * @exception SystemException Thrown if any error occurs. */ public ActivityHierarchy currentActivity () throws SystemException { return UserActivityFactory.userActivity().currentActivity(); }
/** * Get the timeout value currently associated with activities. * * @exception SystemException * Thrown if any error occurs. * * @return the timeout value in seconds, or 0 if no application specified * timeout has been provided. */ public int getTimeout () throws SystemException { return UserActivityFactory.userActivity().getTimeout(); }
/** * Start a new activity. If there is already an activity associated with the * thread then it will be nested. An implementation specific timeout will be * associated with the activity (which may be no timeout). * * @exception WrongStateException * Thrown if the any currently associated activity is in a * state that does not allow a new activity to be enlisted. * @exception SystemException * Thrown in any other situation. */ public void begin (String serviceType) throws WrongStateException, SystemException { UserActivityFactory.userActivity().start(serviceType); }
public ContextManager () { _manager = ActivityManagerFactory.activityManager(); }
/** * Suspend the current activity from this thread and return the token * representing the context, if any, or null otherwise. Once called, the * thread will have no activities associated with it. * * @exception SystemException * Thrown if any error occurs. * * @return the token representing the current context, if any, or null * otherwise. */ public ActivityHierarchy suspend () throws SystemException { return UserActivityFactory.userActivity().suspend(); }
/** * @return the token representing the current activity context hierarchy, or * null if there is none associated with the invoking thread. * * @exception SystemException * Thrown if any error occurs. */ public ActivityHierarchy currentActivity () throws SystemException { return UserActivityFactory.userActivity().currentActivity(); }
/** * Get the timeout value currently associated with activities. * * @exception SystemException * Thrown if any error occurs. * * @return the timeout value in seconds, or 0 if no application specified * timeout has been provided. */ public int getTimeout () throws SystemException { return UserActivityFactory.userActivity().getTimeout(); }
/** * Start a new activity. If there is already an activity associated with the * thread then it will be nested. An implementation specific timeout will be * associated with the activity (which may be no timeout). * * @exception WrongStateException * Thrown if the any currently associated activity is in a * state that does not allow a new activity to be enlisted. * @exception SystemException * Thrown in any other situation. */ public void begin (String serviceType) throws WrongStateException, SystemException { UserActivityFactory.userActivity().start(serviceType); }
public ContextManager () { _manager = ActivityManagerFactory.activityManager(); }