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    *   https://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  import io.netty.util.internal.UnstableApi;
19  
20  /**
21   * Represents all Opcodes that can occur in a {@link BinaryMemcacheMessage}.
22   * <p/>
23   * This class can be extended if a custom application needs to implement a superset of the normally supported
24   * operations by a vanilla memcached protocol.
25   */
26  @UnstableApi
27  public final class BinaryMemcacheOpcodes {
28  
29      private BinaryMemcacheOpcodes() {
30          // disallow construction
31      }
32  
33      public static final byte GET = 0x00;
34      public static final byte SET = 0x01;
35      public static final byte ADD = 0x02;
36      public static final byte REPLACE = 0x03;
37      public static final byte DELETE = 0x04;
38      public static final byte INCREMENT = 0x05;
39      public static final byte DECREMENT = 0x06;
40      public static final byte QUIT = 0x07;
41      public static final byte FLUSH = 0x08;
42      public static final byte GETQ = 0x09;
43      public static final byte NOOP = 0x0a;
44      public static final byte VERSION = 0x0b;
45      public static final byte GETK = 0x0c;
46      public static final byte GETKQ = 0x0d;
47      public static final byte APPEND = 0x0e;
48      public static final byte PREPEND = 0x0f;
49      public static final byte STAT = 0x10;
50      public static final byte SETQ = 0x11;
51      public static final byte ADDQ = 0x12;
52      public static final byte REPLACEQ = 0x13;
53      public static final byte DELETEQ = 0x14;
54      public static final byte INCREMENTQ = 0x15;
55      public static final byte DECREMENTQ = 0x16;
56      public static final byte QUITQ = 0x17;
57      public static final byte FLUSHQ = 0x18;
58      public static final byte APPENDQ = 0x19;
59      public static final byte PREPENDQ = 0x1a;
60      public static final byte TOUCH = 0x1c;
61      public static final byte GAT = 0x1d;
62      public static final byte GATQ = 0x1e;
63      public static final byte GATK = 0x23;
64      public static final byte GATKQ = 0x24;
65      public static final byte SASL_LIST_MECHS = 0x20;
66      public static final byte SASL_AUTH = 0x21;
67      public static final byte SASL_STEP = 0x22;
68  }