private final class FiddlerImpl.RemoveGroupsTask extends Object implements TaskManager.Task
Task
object that is placed
in the TaskManager
queue for processing in the thread
pool. Instances of this class are placed on the task queue when
a registration has requested the removal of a set of groups from
the current set of groups to discover for it.Modifier and Type | Field and Description |
---|---|
String[] |
groups
The groups to remove from the registration's old set
|
FiddlerImpl.RegistrationInfo |
regInfo
Data structure record of the registration that made the request
|
Constructor and Description |
---|
FiddlerImpl.RemoveGroupsTask(FiddlerImpl.RegistrationInfo regInfo,
String[] groups)
Constructs an instance of this class and stores the input
|
Modifier and Type | Method and Description |
---|---|
private void |
removeRegInfoGroups(FiddlerImpl.RegistrationInfo regInfo,
String[] groups)
Removes the elements of the given set from the given registration's
current set of groups to discover.
|
void |
run() |
boolean |
runAfter(List tasks,
int size)
This method returns true if the current instance of this class
must be run after at least one task in the input task list with
an index less than the
size parameter (size may be
less than tasks.size()). |
public final FiddlerImpl.RegistrationInfo regInfo
public final String[] groups
public FiddlerImpl.RemoveGroupsTask(FiddlerImpl.RegistrationInfo regInfo, String[] groups)
private void removeRegInfoGroups(FiddlerImpl.RegistrationInfo regInfo, String[] groups)
public boolean runAfter(List tasks, int size)
size
parameter (size may be
less than tasks.size()).
Note that using List.get will be more efficient than List.iterator.
runAfter
in interface TaskManager.Task
tasks
- the tasks to consider. A read-only List, with all
elements being an instanceof Task.size
- elements with index less than size should be consideredCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.