Package org.hcjf.io.net
Enum NetPackage.PackageStatus
- java.lang.Object
-
- java.lang.Enum<NetPackage.PackageStatus>
-
- org.hcjf.io.net.NetPackage.PackageStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NetPackage.PackageStatus>,java.lang.constant.Constable
- Enclosing class:
- NetPackage
public static enum NetPackage.PackageStatus extends java.lang.Enum<NetPackage.PackageStatus>
Transaction's status.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_CLOSEThis status indicates that the transaction can be processed because the connection of the session is closed.IO_ERRORThis status indicates that the transaction's process fail.OKThis status indicates that the transaction finish ok.REJECTED_SESSION_LOCKEn caso de que la sesion que se quiere escribir este bloqueada entonces no se puede realizar ninguna transaccion de salida.UNKNOWN_SESSIONThis status indicates that the transaction try to be processed over a session that doesn't exist on the server.WAITINGThis status indicates that the transaction are waiting in the output queue to be processed.
-
Method Summary
Modifier and Type Method Description static NetPackage.PackageStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NetPackage.PackageStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WAITING
public static final NetPackage.PackageStatus WAITING
This status indicates that the transaction are waiting in the output queue to be processed. This is the initial state for all the transactions.
-
UNKNOWN_SESSION
public static final NetPackage.PackageStatus UNKNOWN_SESSION
This status indicates that the transaction try to be processed over a session that doesn't exist on the server.
-
CONNECTION_CLOSE
public static final NetPackage.PackageStatus CONNECTION_CLOSE
This status indicates that the transaction can be processed because the connection of the session is closed.
-
REJECTED_SESSION_LOCK
public static final NetPackage.PackageStatus REJECTED_SESSION_LOCK
En caso de que la sesion que se quiere escribir este bloqueada entonces no se puede realizar ninguna transaccion de salida.
-
IO_ERROR
public static final NetPackage.PackageStatus IO_ERROR
This status indicates that the transaction's process fail.
-
OK
public static final NetPackage.PackageStatus OK
This status indicates that the transaction finish ok.
-
-
Method Detail
-
values
public static NetPackage.PackageStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetPackage.PackageStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-