Top Description Methods
java.net

public Interface SocketOption<T>

Known Direct Implementers
java.net.StandardSocketOptions.StdSocketOption
Type Parameters
<T>
The type of the socket option value.

A socket option associated with a socket.

In the channels package, the java.nio.channels.NetworkChannel interface defines the setOption and getOption methods to set and query the channel's socket options.

Since
1.7
See Also
StandardSocketOptions

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the socket option
name
()

Returns the name of the socket option.

public Class<T>

Returns:

the type of the socket option value
type
()

Returns the type of the socket option value.

Method Detail

nameback to summary
public String name()

Returns the name of the socket option.

Returns:String

the name of the socket option

typeback to summary
public Class<T> type()

Returns the type of the socket option value.

Returns:Class<T>

the type of the socket option value