Package io.gs2.gateway.model
Class Session
java.lang.Object
io.gs2.gateway.model.Session
- All Implemented Interfaces:
IModel,Serializable,Comparable<Session>
WebSocketセッション
- Author:
- Game Server Services, Inc.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetApiId()API Gateway の APIIDを取得作成日時を取得オーナーIDを取得WebSocketセッション のGRNを取得WebSocketセッション名を取得最終更新日時を取得ユーザーIDを取得inthashCode()voidAPI Gateway の APIIDを設定voidsetCreatedAt(Long createdAt) 作成日時を設定voidsetOwnerId(String ownerId) オーナーIDを設定voidsetSessionId(String sessionId) WebSocketセッション のGRNを設定voidsetSessionName(String sessionName) WebSocketセッション名を設定voidsetUpdatedAt(Long updatedAt) 最終更新日時を設定voidユーザーIDを設定com.fasterxml.jackson.databind.node.ObjectNodetoJson()API Gateway の APIIDを設定withCreatedAt(Long createdAt) 作成日時を設定withOwnerId(String ownerId) オーナーIDを設定withSessionId(String sessionId) WebSocketセッション のGRNを設定withSessionName(String sessionName) WebSocketセッション名を設定withUpdatedAt(Long updatedAt) 最終更新日時を設定withUserId(String userId) ユーザーIDを設定
-
Field Details
-
sessionId
WebSocketセッション のGRN -
ownerId
オーナーID -
userId
ユーザーID -
sessionName
WebSocketセッション名 -
apiId
API Gateway の APIID -
createdAt
作成日時 -
updatedAt
最終更新日時
-
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
getSessionId
WebSocketセッション のGRNを取得- Returns:
- WebSocketセッション のGRN
-
setSessionId
WebSocketセッション のGRNを設定- Parameters:
sessionId- WebSocketセッション のGRN
-
withSessionId
WebSocketセッション のGRNを設定- Parameters:
sessionId- WebSocketセッション のGRN- Returns:
- this
-
getOwnerId
オーナーIDを取得- Returns:
- オーナーID
-
setOwnerId
オーナーIDを設定- Parameters:
ownerId- オーナーID
-
withOwnerId
オーナーIDを設定- Parameters:
ownerId- オーナーID- Returns:
- this
-
getUserId
ユーザーIDを取得- Returns:
- ユーザーID
-
setUserId
ユーザーIDを設定- Parameters:
userId- ユーザーID
-
withUserId
ユーザーIDを設定- Parameters:
userId- ユーザーID- Returns:
- this
-
getSessionName
WebSocketセッション名を取得- Returns:
- WebSocketセッション名
-
setSessionName
WebSocketセッション名を設定- Parameters:
sessionName- WebSocketセッション名
-
withSessionName
WebSocketセッション名を設定- Parameters:
sessionName- WebSocketセッション名- Returns:
- this
-
getApiId
API Gateway の APIIDを取得- Returns:
- API Gateway の APIID
-
setApiId
API Gateway の APIIDを設定- Parameters:
apiId- API Gateway の APIID
-
withApiId
API Gateway の APIIDを設定- Parameters:
apiId- API Gateway の APIID- Returns:
- this
-
getCreatedAt
作成日時を取得- Returns:
- 作成日時
-
setCreatedAt
作成日時を設定- Parameters:
createdAt- 作成日時
-
withCreatedAt
作成日時を設定- Parameters:
createdAt- 作成日時- Returns:
- this
-
getUpdatedAt
最終更新日時を取得- Returns:
- 最終更新日時
-
setUpdatedAt
最終更新日時を設定- Parameters:
updatedAt- 最終更新日時
-
withUpdatedAt
最終更新日時を設定- Parameters:
updatedAt- 最終更新日時- Returns:
- this
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson() -
compareTo
- Specified by:
compareToin interfaceComparable<Session>
-
hashCode
public int hashCode() -
equals
-