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()
CPSession
public long creationTime()
CPSession
creationTime
in interface CPSession
public long expirationTime()
CPSession
expirationTime
in interface CPSession
public boolean isExpired(long timestamp)
CPSession
public long version()
CPSession
public Address endpoint()
CPSession
public CPSession.CPSessionOwnerType endpointType()
CPSession
endpointType
in interface CPSession
public String endpointName()
CPSession
endpointName
in interface CPSession
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.