Maven module :un.api : api-common :
Class : un.api.event.MonitorEvent
Extends/Implements : un.api.event.Event
Subclasses : -

Listen to object progress.
author  Johann Sorel


Variables : STATE_START, STATE_PROGRESS, STATE_END, STATE_CANCEL, STATE_FAIL
Functions : getState, getProgress, getMessage, getResult, getError


public int STATE_START

public int STATE_PROGRESS

public int STATE_END

public int STATE_CANCEL

public int STATE_FAIL



Object state.
return  int
int getState ()


Object progress.
return  float between 0 and 1.
float getProgress ()


Object progress message.
return  Chars, may be null.
Chars getMessage ()


Get the intermediate results.
Some processing states may start returning result even if they are not finished.
return  Parameter, can be null
Object getResult ()


Object progress exception if failed or minor error occurred.
return  Exception, can be null.
Exception getError ()