mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8329825: Clarify the value type for java.net.SocketOptions.SO_LINGER
Reviewed-by: alanb, dfuchs
This commit is contained in:
parent
52eda79522
commit
5f804b2ec1
1 changed files with 7 additions and 0 deletions
|
@ -190,6 +190,13 @@ public interface SocketOptions {
|
|||
|
||||
/**
|
||||
* See {@link StandardSocketOptions#SO_LINGER} for description of this socket option.
|
||||
* <p>
|
||||
* Set the value to {@code Boolean.FALSE} or an integer less than {@code 0} with
|
||||
* {@link #setOption(int, Object)} to disable this option. An integer greater than or equal to
|
||||
* {@code 0} will enable the option and will represent the linger interval.
|
||||
* <p>
|
||||
* If this option is enabled then {@link #getOption(int)} will return an integer value
|
||||
* representing the linger interval, else the return value will be {@code Boolean.FALSE}.
|
||||
*
|
||||
* @see Socket#setSoLinger
|
||||
* @see Socket#getSoLinger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue