Class IpfHl7v2ConfigurationProperties.FileIdGeneratorProperties

java.lang.Object
org.openehealth.ipf.boot.hl7v2.IpfHl7v2ConfigurationProperties.FileIdGeneratorProperties
Enclosing class:
IpfHl7v2ConfigurationProperties

public static class IpfHl7v2ConfigurationProperties.FileIdGeneratorProperties extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Directory of the ID file
    Name of the ID file
    int
    How many IDs to be generated internally before incrementing the file value
    boolean
    If set to true (default is false) the generator minimizes the number of disk reads by caching the last read value.
    boolean
    If set to false (default is true), retrieving a new ID may fail if the ID file in the home directory can not be written/read.
    void
    setDirectory(String directory)
    Directory of the ID file
    void
    setFileMame(String fileMame)
    Name of the ID file
    void
    setLo(int lo)
    How many IDs to be generated internally before incrementing the file value
    void
    setMinimizeReads(boolean minimizeReads)
    If set to true (default is false) the generator minimizes the number of disk reads by caching the last read value.
    void
    setNeverFail(boolean neverFail)
    If set to false (default is true), retrieving a new ID may fail if the ID file in the home directory can not be written/read.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String getDirectory()
      Directory of the ID file
    • setDirectory

      public void setDirectory(String directory)
      Directory of the ID file
    • getFileMame

      public String getFileMame()
      Name of the ID file
    • setFileMame

      public void setFileMame(String fileMame)
      Name of the ID file
    • isNeverFail

      public boolean isNeverFail()
      If set to false (default is true), 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 to false (default is true), 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 to true (default is false) 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 to true (default is false) 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.