public class FileSystemStorageFactory extends Object implements IQueueFactory
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DIR |
static String |
DEFAULT_QUEUE_TEMPLATE |
protected boolean |
isForcedFlush |
protected Map<byte[],Set<Integer>> |
maskedTags |
protected long |
maxFileSize |
protected long |
normalFileSize |
protected long |
publishTimeout |
protected ILogFileLocator |
queueFileLocator |
protected int |
queueSize |
Constructor and Description |
---|
FileSystemStorageFactory(String storageDir,
int queueSize,
long publishTimeout)
Creates the
FileSystemStorageFactory storage. |
Modifier and Type | Method and Description |
---|---|
IQueue |
getQueue(String sessionID)
Gets queue for session.
|
ILogFileLocator |
getQueueFileLocator() |
void |
setForcedFlush(boolean isForcedFlush) |
void |
setMaskPasswordsInStorages(Map<byte[],Set<Integer>> maskPasswordsInStorages) |
void |
setMaxFileSize(long maxFileSize) |
void |
setNormalFileSize(long normalFileSize) |
void |
setQueueFileLocator(ILogFileLocator queueFileLocator) |
public static final String DEFAULT_QUEUE_TEMPLATE
public static final String DEFAULT_DIR
protected ILogFileLocator queueFileLocator
protected int queueSize
protected long normalFileSize
protected long maxFileSize
protected long publishTimeout
protected boolean isForcedFlush
public FileSystemStorageFactory(String storageDir, int queueSize, long publishTimeout)
FileSystemStorageFactory
storage.public void setNormalFileSize(long normalFileSize)
public void setMaxFileSize(long maxFileSize)
public void setMaskPasswordsInStorages(Map<byte[],Set<Integer>> maskPasswordsInStorages)
public void setForcedFlush(boolean isForcedFlush)
public void setQueueFileLocator(ILogFileLocator queueFileLocator)
public ILogFileLocator getQueueFileLocator()
public IQueue getQueue(String sessionID)
inMemoryQueue
configured, the queue will be InMemoryQueue
,
otherwise PersistentInMemoryQueue
.getQueue
in interface IQueueFactory
sessionID
- Copyright © 2000–2022 EPAM Systems. All rights reserved.