Class ServerConfig


  • @Component
    public class ServerConfig
    extends Object
    General server configuration. By default guest users are allowed (guestAllowed:true), new worlds are created on Enter command (createWorlds:true), number of concurrent sessions is unlimited (maxSessions:0), and session start fails immediately if maxSessions is reached (sessionStartTimeout:0)
    Author:
    joe
    • Constructor Detail

      • ServerConfig

        public ServerConfig()
    • Method Detail

      • isGuestAllowed

        public boolean isGuestAllowed()
      • isCreateWorlds

        public boolean isCreateWorlds()
      • getMaxSessions

        public int getMaxSessions()
      • getSessionStartTimeout

        public int getSessionStartTimeout()
      • isWriteBackActive

        public boolean isWriteBackActive()
      • getWriteBackDelay

        public long getWriteBackDelay()
      • setGuestAllowed

        public void setGuestAllowed​(boolean guestAllowed)
      • setCreateWorlds

        public void setCreateWorlds​(boolean createWorlds)
      • setMaxSessions

        public void setMaxSessions​(int maxSessions)
      • setSessionStartTimeout

        public void setSessionStartTimeout​(int sessionStartTimeout)
      • setWriteBackActive

        public void setWriteBackActive​(boolean writeBackActive)
      • setWriteBackDelay

        public void setWriteBackDelay​(long writeBackDelay)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object