View Javadoc
1   /*
2    * Copyright 2013 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.codec.memcache.binary;
17  
18  /**
19   * Represents all Opcodes that can occur in a {@link BinaryMemcacheMessage}.
20   * <p/>
21   * This class can be extended if a custom application needs to implement a superset of the normally supported
22   * operations by a vanilla memcached protocol.
23   */
24  public final class BinaryMemcacheOpcodes {
25  
26      private BinaryMemcacheOpcodes() {
27          // disallow construction
28      }
29  
30      public static final byte GET = 0x00;
31      public static final byte SET = 0x01;
32      public static final byte ADD = 0x02;
33      public static final byte REPLACE = 0x03;
34      public static final byte DELETE = 0x04;
35      public static final byte INCREMENT = 0x05;
36      public static final byte DECREMENT = 0x06;
37      public static final byte QUIT = 0x07;
38      public static final byte FLUSH = 0x08;
39      public static final byte GETQ = 0x09;
40      public static final byte NOOP = 0x0a;
41      public static final byte VERSION = 0x0b;
42      public static final byte GETK = 0x0c;
43      public static final byte GETKQ = 0x0d;
44      public static final byte APPEND = 0x0e;
45      public static final byte PREPEND = 0x0f;
46      public static final byte STAT = 0x10;
47      public static final byte SETQ = 0x11;
48      public static final byte ADDQ = 0x12;
49      public static final byte REPLACEQ = 0x13;
50      public static final byte DELETEQ = 0x14;
51      public static final byte INCREMENTQ = 0x15;
52      public static final byte DECREMENTQ = 0x16;
53      public static final byte QUITQ = 0x17;
54      public static final byte FLUSHQ = 0x18;
55      public static final byte APPENDQ = 0x19;
56      public static final byte PREPENDQ = 0x1a;
57      public static final byte TOUCH = 0x1c;
58      public static final byte GAT = 0x1d;
59      public static final byte GATQ = 0x1e;
60      public static final byte GATK = 0x23;
61      public static final byte GATKQ = 0x24;
62      public static final byte SASL_LIST_MECHS = 0x20;
63      public static final byte SASL_AUTH = 0x21;
64      public static final byte SASL_STEP = 0x22;
65  }