Class BaseStorageConfig
- java.lang.Object
-
- com.smartfoxserver.v2.persistence.room.BaseStorageConfig
-
- Direct Known Subclasses:
DBRoomStorageConfig
,FileRoomStorageConfig
public class BaseStorageConfig extends java.lang.Object
Base class for Storage Configuration- See Also:
DBRoomStorageConfig
,FileRoomStorageConfig
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
customStorageClassName
Populate this field only If you want to bypass the standard storage classes with a custom implementation.boolean
skipStaticRooms
When saving Rooms in batches by callingIRoomStorage.saveAllRooms()
orIRoomStorage.saveAllRooms(String)
the default assumption is to skip all static Rooms.boolean
storeInactiveRooms
When set to true it will save also Rooms that are marked as inactive.boolean
storeRoomVariables
When set to true it will also save the Room Variables (owned by the server).
-
Constructor Summary
Constructors Constructor Description BaseStorageConfig()
-
-
-
Field Detail
-
storeInactiveRooms
public boolean storeInactiveRooms
When set to true it will save also 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 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
public java.lang.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 SFS2X/extensions/__lib__/
-
-