Java Code Examples for java.net.SocketOption#name()
The following examples show how to use
java.net.SocketOption#name() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExtendedSocketOptions.java From Bytecoder with Apache License 2.0 | 5 votes |
@Override public void setOption(FileDescriptor fd, SocketOption<?> option, Object value) throws SocketException { throw new UnsupportedOperationException( "no extended options: " + option.name()); }
Example 2
Source File: ExtendedSocketOptions.java From Bytecoder with Apache License 2.0 | 5 votes |
@Override public Object getOption(FileDescriptor fd, SocketOption<?> option) throws SocketException { throw new UnsupportedOperationException( "no extended options: " + option.name()); }
Example 3
Source File: ExtendedSocketOptions.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void setOption(FileDescriptor fd, SocketOption<?> option, Object value) throws SocketException { throw new UnsupportedOperationException( "no extended options: " + option.name()); }
Example 4
Source File: ExtendedSocketOptions.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Object getOption(FileDescriptor fd, SocketOption<?> option) throws SocketException { throw new UnsupportedOperationException( "no extended options: " + option.name()); }
Example 5
Source File: SocketOptionUtils.java From servicetalk with Apache License 2.0 | 4 votes |
private static <T> IllegalArgumentException unsupported(final SocketOption<T> option) { return new IllegalArgumentException("SocketOption(" + option.name() + ", " + option.type().getName() + ") is not supported"); }