Package org.openehealth.ipf.boot.hl7v2
Class IpfHl7v2ConfigurationProperties.FileIdGeneratorProperties
java.lang.Object
org.openehealth.ipf.boot.hl7v2.IpfHl7v2ConfigurationProperties.FileIdGeneratorProperties
- Enclosing class:
IpfHl7v2ConfigurationProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDirectory of the ID fileName of the ID fileintgetLo()How many IDs to be generated internally before incrementing the file valuebooleanIf set totrue(default isfalse) the generator minimizes the number of disk reads by caching the last read value.booleanIf set tofalse(default istrue), retrieving a new ID may fail if the ID file in the home directory can not be written/read.voidsetDirectory(String directory) Directory of the ID filevoidsetFileMame(String fileMame) Name of the ID filevoidsetLo(int lo) How many IDs to be generated internally before incrementing the file valuevoidsetMinimizeReads(boolean minimizeReads) If set totrue(default isfalse) the generator minimizes the number of disk reads by caching the last read value.voidsetNeverFail(boolean neverFail) If set tofalse(default istrue), retrieving a new ID may fail if the ID file in the home directory can not be written/read.
-
Constructor Details
-
FileIdGeneratorProperties
public FileIdGeneratorProperties()
-
-
Method Details
-
getLo
public int getLo()How many IDs to be generated internally before incrementing the file value -
setLo
public void setLo(int lo) How many IDs to be generated internally before incrementing the file value -
getDirectory
Directory of the ID file -
setDirectory
Directory of the ID file -
getFileMame
Name of the ID file -
setFileMame
Name of the ID file -
isNeverFail
public boolean isNeverFail()If set tofalse(default istrue), retrieving a new ID may fail if the ID file in the home directory can not be written/read. If set to true, failures will be ignored, which means that IDs may be repeated after a JVM restart. -
setNeverFail
public void setNeverFail(boolean neverFail) If set tofalse(default istrue), retrieving a new ID may fail if the ID file in the home directory can not be written/read. If set to true, failures will be ignored, which means that IDs may be repeated after a JVM restart. -
isMinimizeReads
public boolean isMinimizeReads()If set totrue(default isfalse) the generator minimizes the number of disk reads by caching the last read value. This means one less disk read per X number of IDs generated, but also means that multiple instances of this generator may clobber each other's values. -
setMinimizeReads
public void setMinimizeReads(boolean minimizeReads) If set totrue(default isfalse) the generator minimizes the number of disk reads by caching the last read value. This means one less disk read per X number of IDs generated, but also means that multiple instances of this generator may clobber each other's values.
-