Package org.objectweb.joram.mom.dest
Class QueueArrivalState
- java.lang.Object
-
- org.objectweb.joram.mom.dest.QueueArrivalState
-
- All Implemented Interfaces:
Encodable,Serializable
public class QueueArrivalState extends Object implements Encodable, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueueArrivalState.Factory
-
Field Summary
Fields Modifier and Type Field Description private longarrivalCountprivate Stringidprivate static Loggerloggerprivate booleanmodifiedprivate static longserialVersionUIDdefine serialVersionUID for interoperability, fix with 5.15.0 value-
Fields inherited from interface fr.dyade.aaa.common.encoding.Encodable
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
-
-
Constructor Summary
Constructors Constructor Description QueueArrivalState()QueueArrivalState(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(Decoder decoder)Decodes the content of this objectvoiddelete()voidencode(Encoder encoder)Encodes the content of this objectlonggetAndIncrementArrivalCount(boolean persistent)intgetEncodableClassId()Returns a unique class identifier.intgetEncodedSize()Returns the size of the byte array that results from the encoding of this object.static QueueArrivalStateload(String id)voidsave()Saves this state if modified.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value- See Also:
- Constant Field Values
-
logger
private static final Logger logger
-
id
private String id
-
arrivalCount
private long arrivalCount
-
modified
private boolean modified
-
-
Constructor Detail
-
QueueArrivalState
public QueueArrivalState()
-
QueueArrivalState
public QueueArrivalState(String id)
-
-
Method Detail
-
load
public static QueueArrivalState load(String id) throws Exception
- Throws:
Exception
-
getAndIncrementArrivalCount
public long getAndIncrementArrivalCount(boolean persistent)
-
save
public void save() throws IOExceptionSaves this state if modified.- Throws:
IOException- if an error occurs.
-
delete
public void delete()
-
getEncodableClassId
public int getEncodableClassId()
Description copied from interface:EncodableReturns a unique class identifier.- Specified by:
getEncodableClassIdin interfaceEncodable- Returns:
- a unique class identifier
-
getEncodedSize
public int getEncodedSize() throws ExceptionDescription copied from interface:EncodableReturns the size of the byte array that results from the encoding of this object.- Specified by:
getEncodedSizein interfaceEncodable- Returns:
- the size of the encoded byte array
- Throws:
Exception- if an error occurs
-
encode
public void encode(Encoder encoder) throws Exception
Description copied from interface:EncodableEncodes the content of this object
-
-