org.infinispan.server.core.transport.netty
Enum NettyChannelBuffers
java.lang.Object
java.lang.Enum<NettyChannelBuffers>
org.infinispan.server.core.transport.netty.NettyChannelBuffers
- All Implemented Interfaces:
- Serializable, Comparable<NettyChannelBuffers>, ChannelBuffers
public enum NettyChannelBuffers
- extends Enum<NettyChannelBuffers>
- implements ChannelBuffers
NettyChannelBuffers.
- Since:
- 4.0
- Author:
- Galder ZamarreƱo
INSTANCE
public static final NettyChannelBuffers INSTANCE
values
public static NettyChannelBuffers[] 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 (NettyChannelBuffers c : NettyChannelBuffers.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NettyChannelBuffers valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
wrappedBuffer
public ChannelBuffer wrappedBuffer(byte[] array)
- Specified by:
wrappedBuffer
in interface ChannelBuffers
wrappedBuffer
public ChannelBuffer wrappedBuffer(ChannelBuffer... buffers)
- Specified by:
wrappedBuffer
in interface ChannelBuffers
dynamicBuffer
public ChannelBuffer dynamicBuffer()
- Specified by:
dynamicBuffer
in interface ChannelBuffers
getInstance
public static NettyChannelBuffers getInstance()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.