summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/Ice/DispatchStatus.java46
1 files changed, 4 insertions, 42 deletions
diff --git a/java/src/Ice/DispatchStatus.java b/java/src/Ice/DispatchStatus.java
index 73d3e869173..2b897ecb765 100644
--- a/java/src/Ice/DispatchStatus.java
+++ b/java/src/Ice/DispatchStatus.java
@@ -14,58 +14,20 @@ package Ice;
*
* @see DispatchInterceptor
**/
-public final class DispatchStatus
+public enum DispatchStatus implements java.io.Serializable
{
- private static DispatchStatus[] __values = new DispatchStatus[3];
- private int __value;
-
- public static final int _DispatchOK = 0;
-
/**
* Indicates that an operation was dispatched synchronously and successfully.
**/
- public static final DispatchStatus DispatchOK =
- new DispatchStatus(_DispatchOK);
-
- public static final int _DispatchUserException = 1;
+ DispatchOK,
/**
* Indicates that an operation was dispatched synchronously and raised a user exception.
**/
- public static final DispatchStatus DispatchUserException =
- new DispatchStatus(_DispatchUserException);
-
- public static final int _DispatchAsync = 2;
+ DispatchUserException,
/**
* Indicates that an operation was dispatched asynchronously.
**/
- public static final DispatchStatus DispatchAsync =
- new DispatchStatus(_DispatchAsync);
-
- /**
- * Converts an ordinal value to the corresponding enumerator.
- **/
- public static DispatchStatus
- convert(int val)
- {
- assert val < 3;
- return __values[val];
- }
-
- /**
- * Returns the ordinal value of the current enumerator.
- **/
- public int
- value()
- {
- return __value;
- }
-
- private
- DispatchStatus(int val)
- {
- __value = val;
- __values[val] = this;
- }
+ DispatchAsync;
}