com.ibm.ws.javax.activity.coordination
Interface Action


public interface Action

An Action is an entity that is registered, via an ActivityCoordinator, with an interest in one or more SignalSets. An Action may only be registered with a single ActivityCoordinator.
An Action is the target object to which Signals, produced by a SignalSet, are sent during broadcast and complete operations.


Method Summary
 void destroy()
          Called on the target object, by the Activity service, when the target object is no longer required and indicates to the object that it should perform any necessary clean-up.
 Outcome processSignal(Signal signal)
          Invoked on the target object, by the Activity service, during signal processing.
 

Method Detail

processSignal

public Outcome processSignal(Signal signal)
                      throws ActionErrorException
Invoked on the target object, by the Activity service, during signal processing.

Parameters:
signal - A Signal produced by a SignalSet.
Returns:
An Outcome that indicates the result of the processing of the received Signal by the target Action.
Throws:
ActionError - Thrown if the Action encounters an unexpected error condition during signal processing. This exception is mapped by the Activity service to the predefined org.omg.CosActivity.ActionError Outcome.
ActionErrorException

destroy

public void destroy()
Called on the target object, by the Activity service, when the target object is no longer required and indicates to the object that it should perform any necessary clean-up. The ActivityCoordinator with which the target object was associated is not available at the time this method is called. Actions registered with an interest in the Synchronization SignalSet, such as all global Actions, do not receive an explicit destroy call but should instead use the postComplete signal as the indication that they will receive no further calls.



 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.