Package com.streambase.liveview.client
Interface ProgressMonitor
- All Known Implementing Classes:
NullProgressMonitor
public interface ProgressMonitor
This interface can be used in
ConnectionConfig to receive feedback on LiveViewConnectionFactory.getConnection(ConnectionConfig).
It also enables the client to cancel() the connection request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant indicating an unknown amount of work. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe server reports to the monitor at the beginning of a taskvoidcancel()The client can cancel the current requestvoiddone()The server calls this on completion of the taskbooleanThe api will use this call to see if the client cancelled the current requestvoidThe server calls this with the name of sub tasksvoidworked(int work) The server reports incremental units complete on the current task
-
Field Details
-
UNKNOWN
static final int UNKNOWNConstant indicating an unknown amount of work. This value is to match that of org.eclipse.core.runtime.IProgressMonitor- See Also:
-
-
Method Details
-
cancel
void cancel()The client can cancel the current request -
isCanceled
boolean isCanceled()The api will use this call to see if the client cancelled the current request- Returns:
- true if client cancelled the request
-
beginTask
The server reports to the monitor at the beginning of a task- Parameters:
name- the name of the tasktotalWork- the total steps to complete the task
-
done
void done()The server calls this on completion of the task -
subTask
The server calls this with the name of sub tasks -
worked
void worked(int work) The server reports incremental units complete on the current task- Parameters:
work- the amount done on the current task
-