private final class FiddlerImpl.SendEventTask 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
a remote event is to be sent to a given registration.
Remote events are sent in a separate task such as this to avoid making the remote call to the registration's listener within a synchronization block.
Modifier and Type | Field and Description |
---|---|
RemoteDiscoveryEvent |
event
The remote event to send to the given registration's listener
|
FiddlerImpl.RegistrationInfo |
regInfo
Data structure record corresponding to registration to get event
|
Constructor and Description |
---|
SendEventTask(FiddlerImpl.RegistrationInfo regInfo,
RemoteDiscoveryEvent event)
Constructs an instance of this class and stores the registration
information.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
This method sends a
RemoteDiscoveryEvent to the
listener of the registration that corresponds to the
regInfo field of this class. |
public final FiddlerImpl.RegistrationInfo regInfo
public final RemoteDiscoveryEvent event
public SendEventTask(FiddlerImpl.RegistrationInfo regInfo, RemoteDiscoveryEvent event)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.