@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); layersCacheCountLimit = in.readInt(); }
@Override public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeInt(layersCacheCountLimit); }
public void close() throws IOException { super.close(); final Int2ObjectOpenHashMap<MappedByteBuffer> layersCache = thrLocLayersCache.get(); if(layersCache != null) { for(final MappedByteBuffer layer : layersCache.values()) { DirectMemUtil.free(layer); } layersCache.clear(); thrLocLayersCache.set(null); } }