public class WebSessionEntity extends Object implements Serializable, Binarylizable
| Constructor and Description |
|---|
WebSessionEntity()
Constructor.
|
WebSessionEntity(String id,
long createTime,
long accessTime,
int maxInactiveInterval)
Constructor.
|
WebSessionEntity(WebSessionEntity other)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
accessTime() |
void |
accessTime(long accessTime)
Set access time.
|
Map<String,byte[]> |
attributes() |
long |
createTime() |
String |
id() |
int |
maxInactiveInterval() |
void |
maxInactiveInterval(int maxInactiveInterval)
Set max inactive interval;
|
void |
putAttribute(String name,
byte[] val)
Add attribute to attribute map.
|
void |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
removeAttribute(String name)
Remove attribute.
|
String |
toString() |
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
public WebSessionEntity()
public WebSessionEntity(String id, long createTime, long accessTime, int maxInactiveInterval)
id - Session ID.createTime - Session create time.accessTime - Session last access time.maxInactiveInterval - Session will be removed if not accessed more then this value.public WebSessionEntity(WebSessionEntity other)
public String id()
public long createTime()
public long accessTime()
public void accessTime(long accessTime)
accessTime - Access time.public int maxInactiveInterval()
public void maxInactiveInterval(int maxInactiveInterval)
maxInactiveInterval - Max inactive interval.public Map<String,byte[]> attributes()
Collections.emptyMap().public void putAttribute(String name, byte[] val)
name - Attribute name.val - Attribute value.public void removeAttribute(String name)
name - Attribute name.public void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary in interface Binarylizablewriter - Binary object writer.BinaryObjectException - In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary in interface Binarylizablereader - Binary object reader.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017