private final class RegistrarImpl.DecodeRequestTask extends Object implements TaskManager.Task
Modifier and Type | Field and Description |
---|---|
private DatagramPacket |
datagram
The multicast packet to decode
|
private Discovery |
decoder
The decoder for parsing the packet
|
Constructor and Description |
---|
RegistrarImpl.DecodeRequestTask(DatagramPacket datagram,
Discovery decoder) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Decodes this task's multicast request packet, spawning an
AddressTask if the packet satisfies the configured constraints,
matches this registrar's groups, and does not already contain this
registrar's service ID in its list of known registrars.
|
boolean |
runAfter(List tasks,
int size)
No ordering
|
private final DatagramPacket datagram
private final Discovery decoder
public RegistrarImpl.DecodeRequestTask(DatagramPacket datagram, Discovery decoder)
public void run()
public boolean runAfter(List tasks, int size)
runAfter
in interface TaskManager.Task
tasks
- the tasks to consider. A read-only List, with all
elements 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.