public class CPSessionInfo extends Object implements CPSession, IdentifiedDataSerializable
CPSession.CPSessionOwnerType| Constructor and Description |
|---|
CPSessionInfo() |
| Modifier and Type | Method and Description |
|---|---|
long |
creationTime()
Returns the timestamp of when the session was created
|
Address |
endpoint()
Returns the endpoint that has created this session
|
String |
endpointName()
Returns name of the endpoint that has created this session
|
CPSession.CPSessionOwnerType |
endpointType()
Returns type of the endpoint that has created this session
|
boolean |
equals(Object o) |
long |
expirationTime()
Returns the timestamp of when the session will expire
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
int |
hashCode() |
long |
id()
Returns id of the session
|
boolean |
isExpired(long timestamp)
Returns true if the session expires before the given timestamp.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
long |
version()
Returns version of the session.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public long id()
CPSessionpublic long creationTime()
CPSessioncreationTime in interface CPSessionpublic long expirationTime()
CPSessionexpirationTime in interface CPSessionpublic boolean isExpired(long timestamp)
CPSessionpublic long version()
CPSessionpublic Address endpoint()
CPSessionpublic CPSession.CPSessionOwnerType endpointType()
CPSessionendpointType in interface CPSessionpublic String endpointName()
CPSessionendpointName in interface CPSessionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.