Examples of unlock()


Examples of com.hazelcast.concurrent.lock.LockStoreImpl.unlock()

        }
    }

    private void unlock() {
        LockStoreImpl lockStore = getLockStore();
        boolean unlocked = lockStore.unlock(key, getCallerUuid(), threadId);
        response = unlocked;
        ensureUnlocked(lockStore, unlocked);
    }

    private void ensureUnlocked(LockStoreImpl lockStore, boolean unlocked) {
View Full Code Here

Examples of com.hazelcast.core.ILock.unlock()

                                    rcs.remove(uri);
                                }
                            }
                        }
                    } finally {
                        lock.unlock();
                    }
                }
            }
        } catch (Exception e) {
            if (e.getCause() != null && e.getCause().getCause() != null) {
View Full Code Here

Examples of com.hazelcast.core.IMap.unlock()

                try {
                    Thread.sleep(1);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                } finally {
                    map.unlock(key);
                }
            }
        }, 1);
//        addOperation(operations, new Runnable() {
//            public void run() {
View Full Code Here

Examples of com.hazelcast.core.MultiMap.unlock()

    @Test(expected = NullPointerException.class)
    public void testUnlock_whenNullKey() {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());

        multiMap.unlock(null);
    }

    @Test(expected = NullPointerException.class)
    public void testContainsKey_whenNullKey() throws InterruptedException {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer.unlock()

        super(name, dataKey, threadId);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        if (container.isLocked(dataKey) && !container.unlock(dataKey, getCallerUuid(), threadId)){
            throw new TransactionException("Lock is not owned by the transaction! Owner: " + container.getLockOwnerInfo(dataKey));
        }
    }

    public Operation getBackupOperation() {
View Full Code Here

Examples of com.hazelcast.multimap.impl.MultiMapContainer.unlock()

        super(name, dataKey, threadId);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        if (container.isLocked(dataKey) && !container.unlock(dataKey, getCallerUuid(), threadId)) {
            throw new TransactionException(
                    "Lock is not owned by the transaction! Owner: " + container.getLockOwnerInfo(dataKey)
            );
        }
    }
View Full Code Here

Examples of com.mobixess.jodb.core.io.IOTicket.unlock()

        ioTicket.lock(false);
        long[] offsets;
        try {
            offsets = _base.getForAllObjects(ioTicket);
        } finally {
            ioTicket.unlock();
        }
        ioTicket.close();
        return new SimpleArrayQueryList(offsets,this);
    }
   
View Full Code Here

Examples of com.netflix.exhibitor.core.config.PseudoLock.unlock()

                    }
                }
            }
            finally
            {
                lock.unlock();
            }

            if ( result == null )
            {
                result = new Result("Another process has updated the config.", false);
View Full Code Here

Examples of com.orientechnologies.orient.core.record.ORecord.unlock()

      if (record != null)
        if (contextLockingStrategy != null)
          // CONTEXT LOCK: lock must be released (no matter if filtered or not)
          if (contextLockingStrategy == OStorage.LOCKING_STRATEGY.KEEP_EXCLUSIVE_LOCK
              || contextLockingStrategy == OStorage.LOCKING_STRATEGY.KEEP_SHARED_LOCK)
            record.unlock();
    }
    return true;
  }

  /**
 
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter7.recipe08.task.MyLock.unlock()

   
    /*
     * The main thread release the lock
     */
    System.out.printf("Main: Got the lock\n");
    lock.unlock();
   
    /*
     * Write a message in the console indicating the end of the program
     */
    System.out.printf("Main: End of the program\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.