org.infinispan.server.core.transport.netty
Enum NettyChannelBuffers

java.lang.Object
  extended by java.lang.Enum<NettyChannelBuffers>
      extended by 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

Enum Constant Summary
INSTANCE
           
 
Method Summary
 ChannelBuffer dynamicBuffer()
           
static NettyChannelBuffers getInstance()
           
static NettyChannelBuffers valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NettyChannelBuffers[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 ChannelBuffer wrappedBuffer(byte[] array)
           
 ChannelBuffer wrappedBuffer(ChannelBuffer... buffers)
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final NettyChannelBuffers INSTANCE
Method Detail

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()

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.