public static class GameRoomSession.GameRoomSessionBuilder extends DefaultSession.SessionBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
gameRoomName |
protected LaneStrategy<String,ExecutorService,GameRoom> |
laneStrategy |
protected Game |
parentGame |
protected Protocol |
protocol |
protected Set<PlayerSession> |
sessions |
creationTime, eventDispatcher, id, ID_GENERATOR_SERVICE, isShuttingDown, isUDPEnabled, isWriteable, lastReadWriteTime, sessionAttributes, status
Constructor and Description |
---|
GameRoomSession.GameRoomSessionBuilder() |
Modifier and Type | Method and Description |
---|---|
GameRoomSession.GameRoomSessionBuilder |
gameRoomName(String gameRoomName) |
GameRoomSession.GameRoomSessionBuilder |
laneStrategy(LaneStrategy<String,ExecutorService,GameRoom> laneStrategy) |
GameRoomSession.GameRoomSessionBuilder |
parentGame(Game parentGame) |
GameRoomSession.GameRoomSessionBuilder |
protocol(Protocol protocol) |
GameRoomSession.GameRoomSessionBuilder |
sessions(Set<PlayerSession> sessions) |
protected void |
validateAndSetValues()
This method is used to validate and set the variables to default
values if they are not already set before calling build.
|
build, creationTime, eventDispatcher, getId, id, isShuttingDown, isUDPEnabled, isWriteable, lastReadWriteTime, sessionAttributes, status
protected Set<PlayerSession> sessions
protected Game parentGame
protected String gameRoomName
protected Protocol protocol
protected LaneStrategy<String,ExecutorService,GameRoom> laneStrategy
public GameRoomSession.GameRoomSessionBuilder()
protected void validateAndSetValues()
DefaultSession.SessionBuilder
validateAndSetValues
in class DefaultSession.SessionBuilder
public GameRoomSession.GameRoomSessionBuilder sessions(Set<PlayerSession> sessions)
public GameRoomSession.GameRoomSessionBuilder parentGame(Game parentGame)
public GameRoomSession.GameRoomSessionBuilder gameRoomName(String gameRoomName)
public GameRoomSession.GameRoomSessionBuilder protocol(Protocol protocol)
public GameRoomSession.GameRoomSessionBuilder laneStrategy(LaneStrategy<String,ExecutorService,GameRoom> laneStrategy)
Copyright © 2013. All Rights Reserved.