public class TcpKeepaliveOption extends EDNSOption
OPTRecord
EDNSOption.Code
Constructor and Description |
---|
TcpKeepaliveOption()
Constructor for an option with no timeout
|
TcpKeepaliveOption(Duration t)
Constructor for an option with a given timeout.
|
TcpKeepaliveOption(int t)
Constructor for an option with a given timeout.
|
Modifier and Type | Method and Description |
---|---|
OptionalInt |
getTimeout()
Returns the timeout.
|
Optional<Duration> |
getTimeoutDuration()
Returns the timeout as a
Duration . |
public TcpKeepaliveOption()
public TcpKeepaliveOption(int t)
t
- the timeout time in 100ms units, may not be negative or larger than 65535public OptionalInt getTimeout()
Copyright © 2022 dnsjava.org. All rights reserved.