/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. package com.hazelcast.client;
  17. public interface Constants {
  18. interface Objects {
  19. public static final Object OBJECT_DONE = new Object();
  20. public static final Object OBJECT_NULL = new Object();
  21. public static final Object OBJECT_CANCELLED = new Object();
  22. public static final Object OBJECT_MEMBER_LEFT = new Object();
  23. public static final Object OBJECT_REDO = new Object();
  24. }
  25. interface IO {
  26. public static final int BYTE_BUFFER_SIZE = 1024;
  27. }
  28. interface Timeouts {
  29. public static final long DEFAULT_TXN_TIMEOUT = 8000;
  30. public static final long DEFAULT_TIMEOUT = 1000 * 1000;
  31. }
  32. public interface ResponseTypes {
  33. public static final byte RESPONSE_NONE = 2;
  34. public static final byte RESPONSE_SUCCESS = 3;
  35. public static final byte RESPONSE_FAILURE = 4;
  36. public static final byte RESPONSE_REDO = 5;
  37. }
  38. }