public class UserAgentArrivalState extends Object implements Encodable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UserAgentArrivalState.UserAgentArrivalStateFactory |
Modifier and Type | Field and Description |
---|---|
private long |
arrivalCount |
private String |
id |
static Logger |
logger |
private boolean |
modified |
private static long |
serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value
|
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
UserAgentArrivalState() |
UserAgentArrivalState(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
|
(package private) long |
getAndIncrementArrivalCount() |
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 UserAgentArrivalState |
load(String id) |
void |
save()
Saves this state if modified.
|
void |
setModified() |
private static final long serialVersionUID
public static Logger logger
private String id
private long arrivalCount
private boolean modified
public UserAgentArrivalState()
public UserAgentArrivalState(String id)
public static UserAgentArrivalState load(String id) throws Exception
Exception
long getAndIncrementArrivalCount()
public void setModified()
public void save() throws IOException
IOException
- if an error occurs.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 © 2022 ScalAgent D.T.. All rights reserved.