diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-05-17 18:44:28 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-05-17 18:44:28 +0000 |
commit | c44f531305ba295f52a2eb50390cf4e4d0fb78da (patch) | |
tree | 7dceada2d44cfba48ebe228f31771ff63b819d5c /java/src/Ice/DispatchStatus.java | |
parent | Removed incorrect comment (diff) | |
download | ice-c44f531305ba295f52a2eb50390cf4e4d0fb78da.tar.bz2 ice-c44f531305ba295f52a2eb50390cf4e4d0fb78da.tar.xz ice-c44f531305ba295f52a2eb50390cf4e4d0fb78da.zip |
Split DispatchStatus into DispatchStatus and ReplyStatus
Diffstat (limited to 'java/src/Ice/DispatchStatus.java')
-rw-r--r-- | java/src/Ice/DispatchStatus.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/java/src/Ice/DispatchStatus.java b/java/src/Ice/DispatchStatus.java new file mode 100644 index 00000000000..51d7de328b2 --- /dev/null +++ b/java/src/Ice/DispatchStatus.java @@ -0,0 +1,48 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package Ice; + +public final class DispatchStatus +{ + private static DispatchStatus[] __values = new DispatchStatus[3]; + private int __value; + + public static final int _DispatchOK = 0; + public static final DispatchStatus DispatchOK = + new DispatchStatus(_DispatchOK); + + public static final int _DispatchUserException = 1; + public static final DispatchStatus DispatchUserException = + new DispatchStatus(_DispatchUserException); + + public static final int _DispatchAsync = 2; + public static final DispatchStatus DispatchAsync = + new DispatchStatus(_DispatchAsync); + + public static DispatchStatus + convert(int val) + { + assert val < 3; + return __values[val]; + } + + public int + value() + { + return __value; + } + + private + DispatchStatus(int val) + { + __value = val; + __values[val] = this; + } +} |