Code example for Map

Methods: putAll

0
 
        @Override 
        public void putAll(Map<BytesKey, OpItem> map) {
            this.lock.lock();
            try { 
                this.map.putAll(map);
            } 
            finally { 
                this.lock.unlock();
            } 
        } 
 
 
        @Override 
        public void close() throws IOException { 
            this.lock.lock();
            try { 
                this.map.clear();
            } 
            finally { 
                this.lock.unlock();