SPI implementation

This commit is contained in:
leventov
2015-05-27 00:03:20 +01:00
parent 8e4027da08
commit b4c8554b77
111 changed files with 13637 additions and 3991 deletions
@@ -18,7 +18,6 @@
package net.openhft.chronicle.map;
import com.sun.jdi.connect.spi.ClosedConnectionException;
import net.openhft.chronicle.bytes.IORuntimeException;
import net.openhft.chronicle.hash.RemoteCallTimeoutException;
import net.openhft.chronicle.hash.function.SerializableFunction;
@@ -549,6 +548,12 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
throw new UnsupportedOperationException("Contexts are not supported by stateless clients");
}
@NotNull
@Override
public ExternalMapQueryContext<K, V, ?> queryContext(K key) {
throw new UnsupportedOperationException("Contexts are not supported by stateless clients");
}
public V get(Object key) {
return fetchObject(vClass, GET, (K) key);
}
@@ -1118,7 +1123,7 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
break;
} catch (@NotNull java.nio.channels.ClosedChannelException | ClosedConnectionException e) {
} catch (@NotNull java.nio.channels.ClosedChannelException /*| ClosedConnectionException*/ e) {
checkTimeout(timeoutTime);
lazyConnect(timeoutMs, remoteAddress);
}