public enum SocketProtocolFamily extends Enum<SocketProtocolFamily> implements ProtocolFamily
ProtocolFamily implementation that is used by the different transport implementations.| Enum Constant and Description |
|---|
INET
IPv4
|
INET6
IPv6
|
UNIX
Unix Domain Socket
|
| Modifier and Type | Method and Description |
|---|---|
static SocketProtocolFamily |
of(ProtocolFamily family)
Return the
SocketProtocolFamily for the given ProtocolFamily if possible. |
ProtocolFamily |
toJdkFamily()
Return a
ProtocolFamily that is "known" by the JDK itself and represent the same as
SocketProtocolFamily. |
static SocketProtocolFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketProtocolFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final SocketProtocolFamily INET
public static final SocketProtocolFamily INET6
public static final SocketProtocolFamily UNIX
public static SocketProtocolFamily[] values()
for (SocketProtocolFamily c : SocketProtocolFamily.values()) System.out.println(c);
public static SocketProtocolFamily valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ProtocolFamily toJdkFamily()
ProtocolFamily that is "known" by the JDK itself and represent the same as
SocketProtocolFamily.ProtocolFamily.UnsupportedOperationException - if it can't be converted.public static SocketProtocolFamily of(ProtocolFamily family)
SocketProtocolFamily for the given ProtocolFamily if possible.family - the JDK ProtocolFamily to convert.SocketProtocolFamily.UnsupportedOperationException - if it can't be converted.Copyright © 2008–2025 The Netty Project. All rights reserved.