Class BaseStorageConfig
java.lang.Object
com.smartfoxserver.persistence.room.BaseStorageConfig
- Direct Known Subclasses:
DBRoomStorageConfig,FileRoomStorageConfig
Base class for Storage Configuration
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionPopulate this field only If you want to bypass the standard storage classes with a custom implementation.booleanWhen saving Rooms in batches by callingIRoomStorage.saveAllRooms()orIRoomStorage.saveAllRooms(String)the default assumption is to skip all static Rooms.booleanWhen set to true it will also save Rooms that are marked as inactive.booleanWhen set to true it will also save the Room Variables (owned by the server). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
storeInactiveRooms
public boolean storeInactiveRoomsWhen set to true it will also save Rooms that are marked as inactive. Default = false -
storeRoomVariables
public boolean storeRoomVariablesWhen set to true it will also save the Room Variables (owned by the server). Default = true -
skipStaticRooms
public boolean skipStaticRoomsWhen saving Rooms in batches by callingIRoomStorage.saveAllRooms()orIRoomStorage.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
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()
-