org.infinispan.server.memcached.commands
Enum QuitCommand

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

public enum QuitCommand
extends Enum<QuitCommand>
implements TextCommand

QuitCommand.

Since:
4.1
Author:
Galder ZamarreƱo

Enum Constant Summary
INSTANCE
           
 
Method Summary
 Object acceptVisitor(ChannelHandlerContext ctx, TextProtocolVisitor next)
           
 CommandType getType()
           
static QuitCommand newQuitCommand()
           
 Object perform(ChannelHandlerContext ctx)
           
static QuitCommand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QuitCommand[] 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 QuitCommand INSTANCE
Method Detail

values

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

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

valueOf

public static QuitCommand 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 Throwable
Specified by:
perform in interface Command
Throws:
Throwable

newQuitCommand

public static QuitCommand newQuitCommand()

Google Analytics

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