public void clear() { for (GlowChunk.Key key : keys) { cm.getLockSet(key).remove(this); // GlowServer.logger.info(this + " clearing " + key); } keys.clear(); }
public void release(GlowChunk.Key key) { if (!keys.contains(key)) return; keys.remove(key); cm.getLockSet(key).remove(this); // GlowServer.logger.info(this + " releases " + key); }
public void acquire(GlowChunk.Key key) { if (keys.contains(key)) return; keys.add(key); cm.getLockSet(key).add(this); // GlowServer.logger.info(this + " acquires " + key); }