|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.fiddler.FiddlerImpl.DiscoveredEventTask
private final class FiddlerImpl.DiscoveredEventTask
This class represents a Task
object that is placed
in the TaskManager
queue for processing in the thread
pool. An instance of this class is placed on the task queue when a
DiscoveryEvent
instance indicating a discovered event
is received from the local discovery process.
The run
method of this class will process discovery
event information and determine to which active registrations the
appropriate RemoteDiscoveryEvent
should be sent; and
then sends that event.
Field Summary | |
---|---|
DiscoveryEvent |
event
The local event sent by the discovery manager. |
Constructor Summary | |
---|---|
FiddlerImpl.DiscoveredEventTask(DiscoveryEvent event)
Constructs an instance of this class and stores the event |
Method Summary | |
---|---|
void |
run()
This method processes the local discovery event information and determines, based on the current state of each active registration, to which such registration the appropriate RemoteDiscoveryEvent should be sent. |
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()). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final DiscoveryEvent event
Constructor Detail |
---|
public FiddlerImpl.DiscoveredEventTask(DiscoveryEvent event)
Method Detail |
---|
public void run()
RemoteDiscoveryEvent
should be sent. After making
the determination, the remote event appropriate for each
registration is constructed and sent.
run
in interface Runnable
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 considered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |