org.infinispan.server.memcached.commands
Enum VersionCommand

java.lang.Object
  extended by java.lang.Enum<VersionCommand>
      extended by org.infinispan.server.memcached.commands.VersionCommand
All Implemented Interfaces:
Serializable, Comparable<VersionCommand>, Command, TextCommand

public enum VersionCommand
extends Enum<VersionCommand>
implements TextCommand

VersionCommand.

Since:
4.1
Author:
Galder ZamarreƱo

Enum Constant Summary
INSTANCE
           
 
Method Summary
 Object acceptVisitor(ChannelHandlerContext ctx, TextProtocolVisitor next)
           
 CommandType getType()
           
static VersionCommand newVersionCommand()
           
 Object perform(ChannelHandlerContext ctx)
           
static VersionCommand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VersionCommand[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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 VersionCommand INSTANCE
Method Detail

values

public static VersionCommand[] 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 (VersionCommand c : VersionCommand.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static VersionCommand 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

acceptVisitor

public Object acceptVisitor(ChannelHandlerContext ctx,
                            TextProtocolVisitor next)
                     throws Throwable
Specified by:
acceptVisitor in interface TextCommand
Throws:
Throwable

getType

public CommandType getType()
Specified by:
getType in interface TextCommand

perform

public Object perform(ChannelHandlerContext ctx)
               throws Exception
Specified by:
perform in interface Command
Throws:
Exception

newVersionCommand

public static VersionCommand newVersionCommand()

Google Analytics

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