Remove pointless interface combinations and Javadoc clean-up

This commit is contained in:
leventov
2015-08-08 19:09:08 +03:00
parent 9ffa4a3f25
commit 51140ef343
12 changed files with 35 additions and 64 deletions
@@ -1,24 +0,0 @@
/*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.openhft.chronicle.hash.replication;
import net.openhft.chronicle.hash.HashQueryContext;
public interface HashRemoteQueryContext<K> extends HashQueryContext<K>, RemoteOperationContext<K> {
@Override
HashReplicableEntry<K> entry();
}
@@ -1,23 +0,0 @@
/*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.openhft.chronicle.hash.replication;
import net.openhft.chronicle.hash.HashEntry;
public interface HashReplicableEntry<K> extends HashEntry<K>, ReplicableEntry {
}
@@ -21,13 +21,14 @@ import net.openhft.chronicle.hash.ChronicleHashBuilder;
import net.openhft.chronicle.hash.HashAbsentEntry;
import net.openhft.chronicle.hash.HashEntry;
import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.map.MapEntry;
import net.openhft.chronicle.map.Replica;
import net.openhft.chronicle.map.replication.MapRemoteOperations;
import net.openhft.chronicle.set.replication.SetRemoteOperations;
/**
* Abstracts an in replicated {@link ChronicleHash}. A {@link HashAbsentEntry} might be a {@code
* ReplicableEntry} as well as {@link HashEntry}.
* Abstracts a replicable entry in the replicated {@link ChronicleHash}. A {@link HashAbsentEntry}
* might be a {@code ReplicableEntry} as well as {@link HashEntry}.
*/
public interface ReplicableEntry {
/**
@@ -35,7 +36,7 @@ public interface ReplicableEntry {
* the identifier of the {@code ChronicleHash} node on which this entry was updated last.
*
* <p>When the entry is replicated, this identifier comes to remote nodes as {@link
* HashRemoteQueryContext#remoteIdentifier()}.
* RemoteOperationContext#remoteIdentifier()}.
*
* <p>On {@code ChronicleHash} local operations with entries, like {@link ChronicleMap#put(
* Object, Object)}, this identifier is overwritten to the own {@code ChronicleHash} {@link
@@ -52,7 +53,7 @@ public interface ReplicableEntry {
* the time of the last.
*
* <p>When the entry is replicated, this timestamp comes to remote nodes as {@link
* HashRemoteQueryContext#remoteTimestamp()}.
* RemoteOperationContext#remoteTimestamp()}.
*
* <p>On {@code ChronicleHash} local operations with entries, like {@link ChronicleMap#put(
* Object, Object)}, this timestamp is overwritten using {@linkplain