Code example for Lock

Methods: lock, unlock

0
    } 
 
 
    @Override 
    public void close() throws IOException { 
        this.lock.lock();
        try { 
            this.handler.close();
        } 
        finally { 
            this.lock.unlock();
        } 
    } 
 
 
    public LRUHashMap<BytesKey, OpItem> getMap() { 
        return map;
    } 
 
 
    public NotifyEldestEntryHandler getHandler() {