Examples of unlock()


Examples of org.openstreetmap.osmosis.core.util.FileBasedLock.unlock()

    try {
      fileLock.lock();
     
      initializeDirectory();
     
      fileLock.unlock();
     
    } finally {
      fileLock.release();
    }
  }
View Full Code Here

Examples of org.platformlayer.auth.UserEntity.unlock()

      user = repository.findUserById(userId);
    } catch (RepositoryException e) {
      throw new AuthenticatorException("Error while authenticating user", e);
    }

    user.unlock(userSecret);

    // user.unlockWithToken(UserEntity.TOKEN_ID_DEFAULT, tokenSecret);

    if (user.isLocked()) {
      return null;
View Full Code Here

Examples of org.platformlayer.core.model.SecretInfo.unlock()

      if (itemSecret instanceof AesCryptoKey) {
        log.warn("Legacy AES crypto key on {} {} {} {}",
            new Object[] { project, serviceType, itemType, entity });
      }

      secret.unlock(itemSecret);

      byte[] plaintext = FathomdbCrypto.decrypt(itemSecret, data);
      String xml = new String(plaintext, Charsets.UTF_8);

      T model = (T) jaxb.unmarshal(xml);
View Full Code Here

Examples of org.redisson.core.RLock.unlock()

            public void run() {
                RLock lock1 = redisson.getLock("lock");
                lock1.lock();
                long spendTime = System.currentTimeMillis() - startTime;
                Assert.assertTrue(spendTime < 2005);
                lock1.unlock();
                latch.countDown();
            };
        }.start();

        latch.await();
View Full Code Here

Examples of org.sonatype.nexus.proxy.item.RepositoryItemUidLock.unlock()

      }

      return false;
    }
    finally {
      uidLock.unlock();
    }
  }

  public Attributes getAttributes(final RepositoryItemUid uid)
      throws IOException
View Full Code Here

Examples of org.springframework.aop.framework.Lockable.unlock()

      fail("Should be locked");
    }
    catch (IllegalStateException ex) {
      // Ok
    }
    lockable.unlock();
    itb.setName("Tony");
  }

  public void testAspectMethodThrowsExceptionLegalOnSignature() {
    TestBean target = new TestBean();
View Full Code Here

Examples of org.springframework.webflow.conversation.Conversation.unlock()

        "test"));
    ConversationId conversationId = conversation.getId();
    assertNotNull(conversationManager.getConversation(conversationId));
    conversation.lock();
    conversation.end();
    conversation.unlock();
    try {
      conversationManager.getConversation(conversationId);
      fail("Conversation should have ben removed");
    } catch (ConversationException e) {
    }
View Full Code Here

Examples of org.springframework.webflow.execution.repository.FlowExecutionLock.unlock()

  public void testGetLock() {
    FlowExecutionKey key = repository.parseFlowExecutionKey("e12345s54321");
    FlowExecutionLock lock = repository.getLock(key);
    assertNotNull(lock);
    lock.unlock();
  }

  public void testGetLockNoSuchFlowExecution() {
    FlowExecutionKey key = repository.parseFlowExecutionKey("e99999s54321");
    try {
View Full Code Here

Examples of org.terasology.world.chunks.Chunk.unlock()

                worldEntity.send(new OnChunkLoaded(readyChunkInfo.getPos()));
                for (ChunkRelevanceRegion region : regions.values()) {
                    region.chunkReady(chunk);
                }
            } finally {
                chunk.unlock();
            }
        }
    }

    @Override
View Full Code Here

Examples of org.terasology.world.chunks.CoreChunk.unlock()

        CoreChunk chunk = chunkProvider.getChunk(chunkPos);
        if (chunk != null) {
            Vector3i blockPos = TeraMath.calcBlockPos(worldPos);
            chunk.lock();
            Block oldBlockType = chunk.setBlock(blockPos, type);
            chunk.unlock();
            if (oldBlockType != type) {
                BlockChange oldChange = blockChanges.get(worldPos);
                if (oldChange == null) {
                    blockChanges.put(worldPos, new BlockChange(worldPos, oldBlockType, type));
                } else {
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.