public class IPPollAddress extends Object
This class is used to represent the polling information needed by the discovery process. Each instance encapsulates an internet address, timeout in milliseconds, and a retry count.
Constructor and Description |
---|
IPPollAddress(InetAddress ipAddress,
long timeout,
int retries)
Constructs an IPPollAddress object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Returns true if the passed object is equal to self.
|
InetAddress |
getAddress()
Returns the internet address encapsulated in the object.
|
int |
getRetries()
Returns the current number of retries set for this address.
|
long |
getTimeout()
Returns the timeout in 1/1000th of a second increments.
|
String |
toString() |
public IPPollAddress(InetAddress ipAddress, long timeout, int retries)
Constructs an IPPollAddress object with the specified parameters.
ipAddress
- The Dotted Decimal IPv4 Address.timeout
- The timeout between retries in 1/1000th of a second.retries
- The number of times to attempt to contact the address.public long getTimeout()
Returns the timeout in 1/1000th of a second increments.
public int getRetries()
Returns the current number of retries set for this address.
public InetAddress getAddress()
public boolean equals(Object object)
Returns true if the passed object is equal to self. The objects must be equal in address, timeout, and the number of retries.
equals
in class Object
pollAddr
- a IPPollAddress
object.Copyright © 2018. All rights reserved.