PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/hazelcast-client/src/main/java/com/hazelcast/client/Constants.java

https://bitbucket.org/gabral6_gmailcom/hazelcast
Java | 55 lines | 23 code | 17 blank | 15 comment | 0 complexity | 67fca67a50c379e66aee11c5f05fb3a5 MD5 | raw file
 1/*
 2 * Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
 3 *
 4 * Licensed under the Apache License, Version 2.0 (the "License");
 5 * you may not use this file except in compliance with the License.
 6 * 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,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.hazelcast.client;
18
19public interface Constants {
20
21    interface Objects {
22        public static final Object OBJECT_DONE = new Object();
23
24        public static final Object OBJECT_NULL = new Object();
25
26        public static final Object OBJECT_CANCELLED = new Object();
27
28        public static final Object OBJECT_MEMBER_LEFT = new Object();
29
30        public static final Object OBJECT_REDO = new Object();
31    }
32
33    interface IO {
34
35        public static final int BYTE_BUFFER_SIZE = 1024;
36    }
37
38    interface Timeouts {
39
40        public static final long DEFAULT_TXN_TIMEOUT = 8000;
41
42        public static final long DEFAULT_TIMEOUT = 1000 * 1000;
43    }
44
45    public interface ResponseTypes {
46
47        public static final byte RESPONSE_NONE = 2;
48
49        public static final byte RESPONSE_SUCCESS = 3;
50
51        public static final byte RESPONSE_FAILURE = 4;
52
53        public static final byte RESPONSE_REDO = 5;
54    }
55}