Enum EventLoopType
- java.lang.Object
-
- java.lang.Enum<EventLoopType>
-
- org.apache.qpid.jms.transports.netty.EventLoopType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EventLoopType>
public enum EventLoopType extends java.lang.Enum<EventLoopType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateChannel(io.netty.bootstrap.Bootstrap bootstrap)io.netty.channel.EventLoopGroupcreateEventLoopGroup(int threads, java.util.concurrent.ThreadFactory ioThreadFactory)static EventLoopTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EventLoopTypevalueOf(TransportOptions transportOptions)Returns the enum constant of this type with the specified name.static EventLoopType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EPOLL
public static final EventLoopType EPOLL
-
KQUEUE
public static final EventLoopType KQUEUE
-
NIO
public static final EventLoopType NIO
-
-
Method Detail
-
values
public static EventLoopType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventLoopType c : EventLoopType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventLoopType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
createChannel
public void createChannel(io.netty.bootstrap.Bootstrap bootstrap)
-
createEventLoopGroup
public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, java.util.concurrent.ThreadFactory ioThreadFactory)
-
valueOf
public static EventLoopType valueOf(TransportOptions transportOptions)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
transportOptions- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-