public class QueueArrivalState extends Object implements Encodable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
QueueArrivalState.Factory |
Modifier and Type | Field and Description |
---|---|
private long |
arrivalCount |
private String |
id |
static org.objectweb.util.monolog.api.Logger |
logger |
private boolean |
modified |
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
QueueArrivalState() |
QueueArrivalState(String id) |
Modifier and Type | Method and Description |
---|---|
void |
decode(Decoder decoder)
Decodes the content of this object
|
void |
delete() |
void |
encode(Encoder encoder)
Encodes the content of this object
|
long |
getAndIncrementArrivalCount(boolean persistent) |
int |
getEncodableClassId()
Returns a unique class identifier.
|
int |
getEncodedSize()
Returns the size of the byte array that results
from the encoding of this object.
|
static QueueArrivalState |
load(String id) |
void |
save()
Saves this state if modified.
|
public static org.objectweb.util.monolog.api.Logger logger
private String id
private long arrivalCount
private boolean modified
public QueueArrivalState()
public QueueArrivalState(String id)
public static QueueArrivalState load(String id) throws Exception
Exception
public long getAndIncrementArrivalCount(boolean persistent)
public void save() throws IOException
Exception
IOException
public void delete()
public int getEncodableClassId()
Encodable
getEncodableClassId
in interface Encodable
public int getEncodedSize() throws Exception
Encodable
getEncodedSize
in interface Encodable
Exception
- if an error occurspublic void encode(Encoder encoder) throws Exception
Encodable
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.