mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Standard code formatting
This commit is contained in:
@@ -26,7 +26,7 @@ import net.openhft.chronicle.set.SetEntry;
|
||||
* with {@link ChronicleHashBuilder#checksumEntries(boolean)} configured to {@code true}. There is
|
||||
* no method that returns {@code ChecksumEntry}, {@link MapEntry} or {@link SetEntry} could be
|
||||
* <i>casted</i> to {@code ChecksumEntry} to access it's methods.
|
||||
*
|
||||
* <p>
|
||||
* <p>See <a href="https://github.com/OpenHFT/Chronicle-Map#entry-checksums">Entry checksums</a>
|
||||
* section in the Chronicle Map tutorial for usage examples of this interface.
|
||||
*/
|
||||
@@ -41,11 +41,11 @@ public interface ChecksumEntry {
|
||||
* interface</a>.
|
||||
*
|
||||
* @throws UnsupportedOperationException if checksums are not stored in the containing Chronicle
|
||||
* Hash
|
||||
* @throws RuntimeException if the context of this entry is locked improperly, e. g. on the
|
||||
* {@linkplain HashQueryContext#readLock() read} level, that is not upgradable to the
|
||||
* {@linkplain HashQueryContext#updateLock() update} level. Calling {@code updateChecksum()}
|
||||
* method is enabled when at least update lock is held.
|
||||
* Hash
|
||||
* @throws RuntimeException if the context of this entry is locked improperly, e. g. on the
|
||||
* {@linkplain HashQueryContext#readLock() read} level, that is not upgradable to the
|
||||
* {@linkplain HashQueryContext#updateLock() update} level. Calling {@code updateChecksum()}
|
||||
* method is enabled when at least update lock is held.
|
||||
*/
|
||||
void updateChecksum();
|
||||
|
||||
@@ -54,11 +54,11 @@ public interface ChecksumEntry {
|
||||
*
|
||||
* @return {@code true} if stored checksum equals to checksum computed from the entry bytes
|
||||
* @throws UnsupportedOperationException if checksums are not stored in the containing Chronicle
|
||||
* Hash
|
||||
* @throws RuntimeException if the context of this entry is locked improperly, e. g. on the
|
||||
* {@linkplain HashQueryContext#readLock() read} level, that is not upgradable to the
|
||||
* {@linkplain HashQueryContext#updateLock() update} level. Calling {@code checkSum()} method is
|
||||
* enabled when at least update lock is held.
|
||||
* Hash
|
||||
* @throws RuntimeException if the context of this entry is locked improperly, e. g. on the
|
||||
* {@linkplain HashQueryContext#readLock() read} level, that is not upgradable to the
|
||||
* {@linkplain HashQueryContext#updateLock() update} level. Calling {@code checkSum()} method is
|
||||
* enabled when at least update lock is held.
|
||||
*/
|
||||
boolean checkSum();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user