mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
CE-20 moved the map lookup by name from engine to the map code ( but its a bit of a hack and requires implementing properly, but for the moment this demonstrates the API )
This commit is contained in:
@@ -72,14 +72,9 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
|
||||
|
||||
private ByteBuffer inBuffer;
|
||||
private ByteBufferBytes inBytes;
|
||||
|
||||
@NotNull
|
||||
private ReaderWithSize<K> keyReaderWithSize;
|
||||
@NotNull
|
||||
private WriterWithSize<K> keyWriterWithSize;
|
||||
@NotNull
|
||||
private ReaderWithSize<V> valueReaderWithSize;
|
||||
@NotNull
|
||||
private WriterWithSize<V> valueWriterWithSize;
|
||||
private SocketChannel clientChannel;
|
||||
|
||||
@@ -98,15 +93,9 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
|
||||
private final ReentrantLock inBytesLock = new ReentrantLock(true);
|
||||
private final ReentrantLock outBytesLock = new ReentrantLock();
|
||||
|
||||
private final BufferResizer outBufferResizer = new BufferResizer() {
|
||||
@Override
|
||||
public Bytes resizeBuffer(int newCapacity) {
|
||||
return resizeBufferOutBuffer(newCapacity);
|
||||
private final BufferResizer outBufferResizer = newCapacity -> resizeBufferOutBuffer(newCapacity);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
static enum EventId {
|
||||
enum EventId {
|
||||
HEARTBEAT,
|
||||
STATEFUL_UPDATE,
|
||||
LONG_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user