Class Journal.Record<T>

java.lang.Object
overit.geocall.bl.Journal.Record<T>
All Implemented Interfaces:
Serializable
Enclosing class:
Journal<T>

public class Journal.Record<T> extends Object implements Serializable
See Also:
  • Constructor Details

    • Record

      protected Record(Class clz)
      Parameters:
      clz - the class responsible for write operations
  • Method Details

    • close

      public void close()
      closes the record and no more oprations can occur
    • write

      public void write(T content)
      Parameters:
      content - the content to be stored inside the record
      Throws:
      IllegalStateException - if the record is already closed
    • read

      public T read()
      Returns:
      return the content of the record
    • getOpenTime

      public long getOpenTime()
      Returns:
      the creation time for the record
    • getCloseTime

      public long getCloseTime()
      Returns:
      the closing time for the record
    • getClz

      public Class getClz()
      Returns:
      the class responsible for write operations