public class FileStoreFactory extends Object implements MessageStoreFactory
| Modifier and Type | Field and Description | 
|---|---|
static String | 
SETTING_FILE_STORE_MAX_CACHED_MSGS
Numeric option limiting the number of messages stored in the in-memory
 message index. 
 | 
static String | 
SETTING_FILE_STORE_PATH
File path for writing the message store. 
 | 
static String | 
SETTING_FILE_STORE_SYNC
Boolean option for controlling whether the FileStore syncs to the hard
 drive on every write. 
 | 
protected SessionSettings | 
settings  | 
| Constructor and Description | 
|---|
FileStoreFactory(SessionSettings settings)
Create the factory with configuration in session settings. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MessageStore | 
create(SessionID sessionID)
Creates a file-based message store. 
 | 
public static final String SETTING_FILE_STORE_PATH
public static final String SETTING_FILE_STORE_SYNC
public static final String SETTING_FILE_STORE_MAX_CACHED_MSGS
protected final SessionSettings settings
public FileStoreFactory(SessionSettings settings)
settings - public MessageStore create(SessionID sessionID)
create in interface MessageStoreFactorysessionID - session ID for the message store.Copyright © 2021. All rights reserved.