Top Description Inners Fields Constructors Methods
org.newsclub.net.unix

pack-priv final Class SocketOptionsMapper

extends Object
Class Inheritance
Imports
java.net.SocketOption, .SocketOptions, .StandardSocketOptions, java.util.Collections, .HashMap, .HashSet, .Map, .Set

Maps new SocketOption classes to the old integer-based scheme.
Author
Christian Kohlschütter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Map<SocketOption<?>, SocketOptionsMapper.SocketOptionRef>
pack-priv static final Set<SocketOption<?>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static <T> void
registerSocketOption(SocketOption<T> option, int socketOptionsId, boolean supported)

pack-priv static Integer
resolve(SocketOption<?> option)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SOCKET_OPTIONSback to summary
private static final Map<SocketOption<?>, SocketOptionsMapper.SocketOptionRef> SOCKET_OPTIONS
SUPPORTED_SOCKET_OPTIONSback to summary
pack-priv static final Set<SocketOption<?>> SUPPORTED_SOCKET_OPTIONS

Constructor Detail

SocketOptionsMapperback to summary
pack-priv SocketOptionsMapper()

Method Detail

registerSocketOptionback to summary
private static <T> void registerSocketOption(SocketOption<T> option, int socketOptionsId, boolean supported)
resolveback to summary
pack-priv static Integer resolve(SocketOption<?> option)
org.newsclub.net.unix back to summary

private final Class SocketOptionsMapper.SocketOptionRef

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
SocketOptionRef(int optionId, boolean supported)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

optionIdback to summary
private final int optionId
supportedback to summary
private final boolean supported

Constructor Detail

SocketOptionRefback to summary
pack-priv SocketOptionRef(int optionId, boolean supported)