org.infinispan.server.memcached.commands
Enum QuitCommand
java.lang.Object
java.lang.Enum<QuitCommand>
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
INSTANCE
public static final QuitCommand INSTANCE
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()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.