private static final class RegistrarImpl.AddressTask extends Object implements Runnable, Comparable<RegistrarImpl.AddressTask>
Modifier and Type | Field and Description |
---|---|
private int |
hash |
private String |
host
The address
|
private int |
port
The port
|
private RegistrarImpl |
reggie |
Constructor and Description |
---|
AddressTask(String host,
int port,
RegistrarImpl reggie)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
attemptResponse(InetSocketAddress addr,
int timeout)
attempt a connection to multicast request client
|
int |
compareTo(RegistrarImpl.AddressTask o) |
boolean |
equals(Object obj)
Two tasks are equal if they have the same address and port
|
int |
hashCode()
Two tasks are equal if they have the same address and port
|
void |
run()
Connect and then process a unicast discovery request
|
private final String host
private final int port
private final RegistrarImpl reggie
private final int hash
public AddressTask(String host, int port, RegistrarImpl reggie)
public int hashCode()
public boolean equals(Object obj)
public void run()
private void attemptResponse(InetSocketAddress addr, int timeout) throws Exception
Exception
public int compareTo(RegistrarImpl.AddressTask o)
compareTo
in interface Comparable<RegistrarImpl.AddressTask>
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.