Package overit.geocall.bl
Class Journal.Record<T>
java.lang.Object
overit.geocall.bl.Journal.Record<T>
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Details
-
Record
- Parameters:
clz- the class responsible for write operations
-
-
Method Details
-
close
public void close()closes the record and no more oprations can occur -
write
- Parameters:
content- the content to be stored inside the record- Throws:
IllegalStateException- if the record is already closed
-
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
- Returns:
- the class responsible for write operations
-