Verastream Transaction Integrator 4.0

com.attachmate.tasks
Interface ITaskListener


public interface ITaskListener

Task listener interface. Contains method definitions for event handlers to be implemented by Task Bean event listeners.

Although registering a listener is the preferred way to get the status of a client operation execution a client program may also use ITask.getStatus to poll for the same information.

See Also:
ITask

Method Summary
 void taskStatusChange(TaskStatusChangeEvent event)
          Notification of a change in client operation status.
 

Method Detail

taskStatusChange

void taskStatusChange(TaskStatusChangeEvent event)
Notification of a change in client operation status. A client operation can start, complete normally, be canceled, time out or fail due to some error. The event object contains the client operation status information such as the client operation execution status, exception information and source of the event.

Parameters:
event - task status change event object. The event object contains the following client operation status information:
  • event.status -- one of the event status constants defined in TaskStatusChangeEvent
  • event.exception -- optional exception information. May be null.
See Also:
TaskStatusChangeEvent, ITask.getStatus()

Verastream Transaction Integrator 4.0