Class BaseStorageConfig

java.lang.Object
com.smartfoxserver.persistence.room.BaseStorageConfig
Direct Known Subclasses:
DBRoomStorageConfig, FileRoomStorageConfig

public class BaseStorageConfig extends Object
Base class for Storage Configuration
See Also:
  • Field Details

    • storeInactiveRooms

      public boolean storeInactiveRooms
      When set to true it will also save Rooms that are marked as inactive. Default = false
    • storeRoomVariables

      public boolean storeRoomVariables
      When set to true it will also save the Room Variables (owned by the server). Default = true
    • skipStaticRooms

      public boolean skipStaticRooms
      When saving Rooms in batches by calling IRoomStorage.saveAllRooms() or IRoomStorage.saveAllRooms(String) the default assumption is to skip all static Rooms. Static Rooms are already defined in the Server configuration and recreated when the server starts up so, typically you don't want to store those Rooms.
    • customStorageClassName

      public String customStorageClassName
      Populate this field only If you want to bypass the standard storage classes with a custom implementation. This field must specify the fully qualified class name of your custom IRoomStorage implementation. The class must be visible in the global class path, therefore it must be deployed separately from the Extension classes in a jar file under server/extensions/_shared/
  • Constructor Details

    • BaseStorageConfig

      public BaseStorageConfig()