Package io.bdeploy.common
Class ActivityReporter.Null
java.lang.Object
io.bdeploy.common.ActivityReporter.Null
- All Implemented Interfaces:
ActivityReporter
- Enclosing interface:
- ActivityReporter
No-op
ActivityReporter, which does nothing, except being
null.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.bdeploy.common.ActivityReporter
ActivityReporter.Activity, ActivityReporter.ActivityCancelledException, ActivityReporter.Delegating, ActivityReporter.Null, ActivityReporter.Stream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproxyActivities(RemoteService service) Proxy remote activities to thisActivityReporterimplementation if possible.Start anActivityReporter.Activitywithout any associated work amount.Start anActivityReporter.Activitywith a static work amount.start(String activity, LongSupplier maxValue, LongSupplier currentValue) Start anActivityReporter.Activitywith a dynamic maximum and current work amount.
-
Constructor Details
-
Null
public Null()
-
-
Method Details
-
start
Description copied from interface:ActivityReporterStart anActivityReporter.Activitywithout any associated work amount.- Specified by:
startin interfaceActivityReporter
-
start
Description copied from interface:ActivityReporterStart anActivityReporter.Activitywith a static work amount. UseActivityReporter.Activity.worked(long)to updated the already consumed work amount.Special maxWork values:
- -1: don't report work at all. only time will be reported
- 0: don't report any maximum, just report current amount if possible.
- Specified by:
startin interfaceActivityReporter
-
start
public ActivityReporter.Activity start(String activity, LongSupplier maxValue, LongSupplier currentValue) Description copied from interface:ActivityReporterStart anActivityReporter.Activitywith a dynamic maximum and current work amount. TheSuppliers are queried periodically when reporting progress, to catch updates on the values.- Specified by:
startin interfaceActivityReporter
-
proxyActivities
Description copied from interface:ActivityReporterProxy remote activities to thisActivityReporterimplementation if possible.- Specified by:
proxyActivitiesin interfaceActivityReporter
-