Interface ProgressEventDispatcher.Factory
-
- Enclosing class:
- ProgressEventDispatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ProgressEventDispatcher.Factory
Creates a newProgressEventDispatcher
based off an existingProgressEventDispatcher
.create(java.lang.String, long)
should only be called once.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProgressEventDispatcher
create(java.lang.String description, long allocationUnits)
Creates theProgressEventDispatcher
with an associatedAllocation
.
-
-
-
Method Detail
-
create
ProgressEventDispatcher create(java.lang.String description, long allocationUnits)
Creates theProgressEventDispatcher
with an associatedAllocation
.- Parameters:
description
- user-facing description of what the allocation representsallocationUnits
- number of allocation units- Returns:
- the new
ProgressEventDispatcher
-
-