private final class FiddlerImpl.DiscardRegistrarTask extends Object implements Runnable
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
registrations request that a given registrar be discarded.
The run
method of this class will remove the indicated
registrar from the registration's set of discovered registrars and
if successfully removed, will build and send a remote discarded event
to the registration's listener.
Modifier and Type | Field and Description |
---|---|
FiddlerImpl.RegistrationInfo |
regInfo
Data structure record corresponding to the registration that has
requested to have one of its discovered registrars discarded
|
ServiceRegistrar |
registrar
The registrar to discard
|
Constructor and Description |
---|
DiscardRegistrarTask(FiddlerImpl.RegistrationInfo regInfo,
ServiceRegistrar registrar)
Constructs an instance of this class and stores the registration
information.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
This method attempts to remove the indicated registrar from
the registration's set of discovered registrars.
|
public final FiddlerImpl.RegistrationInfo regInfo
public final ServiceRegistrar registrar
public DiscardRegistrarTask(FiddlerImpl.RegistrationInfo regInfo, ServiceRegistrar registrar)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.