private final class RegistrarImpl.AddressTask extends Object implements TaskManager.Task
Modifier and Type | Field and Description |
---|---|
String |
host
The address
|
int |
port
The port
|
Constructor and Description |
---|
RegistrarImpl.AddressTask(String host,
int port)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
attemptResponse(InetSocketAddress addr,
int timeout)
attempt a connection to multicast request client
|
boolean |
equals(Object obj)
Two tasks are equal if they have the same address and port
|
int |
hashCode() |
void |
run()
Connect and then process a unicast discovery request
|
boolean |
runAfter(List tasks,
int size)
No ordering
|
public final String host
public final int port
public RegistrarImpl.AddressTask(String host, int port)
public boolean equals(Object obj)
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 consideredprivate void attemptResponse(InetSocketAddress addr, int timeout) throws Exception
Exception
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.