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