aQute.bnd.service.progress
Interface ProgressPlugin.Task

Enclosing interface:
ProgressPlugin

public static interface ProgressPlugin.Task

Represents an ongoing task.


Method Summary
 void done(String message, Throwable e)
          The task has been completed; optionally with a message and/or exception to indicate the outcome.
 void worked(int units)
          The specified number of units out of the total have been worked.
 

Method Detail

worked

void worked(int units)
The specified number of units out of the total have been worked. If called after done(), an IllegalStateException may be thrown.

Parameters:
units -

done

void done(String message,
          Throwable e)
The task has been completed; optionally with a message and/or exception to indicate the outcome. After calling this method, no more work should be performed in the task.

Parameters:
message - A message associated with the completion of the task; may be null.
e - An exception thrown by the task; may be null;


Copyright © 2014 aQute SARL. All rights reserved.