Examples of unlock()


Examples of com.wesabe.grendel.openpgp.KeySet.unlock()

    @Test
    public void itCanRelockTheKeySetWithADifferentPassphrase() throws Exception {
      final KeySet newKeySet = unlockedKeySet.relock("test".toCharArray(), "yay".toCharArray(), new SecureRandom());
     
      try {
        newKeySet.unlock("test".toCharArray());
        fail("should have thrown a CryptographicException but didn't");
      } catch (CryptographicException e) {
        assertThat(e.getMessage()).isEqualTo("incorrect passphrase");
      }
     
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.locks.Lock.unlock()

            }

            return _constraintInfo;
        } finally
        {
            _lock.unlock();
        }
    }

    public ConstraintInfo[] get_all_constraints()
    {
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.locks.ReentrantLock.unlock()

                        if (queue[i] == replacement)
                            siftUp(i, replacement);
                    }
                }
            } finally {
                lock.unlock();
            }
            return removed;
        }

        public int size() {
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.rmi.list.INode.unlock()

        }
      }
      if(tail!=null ){
        Network.linkDelay(true, tailServer);
        try {
          tail.unlock();
        } catch (RemoteException e) {
          e.printStackTrace();
        }
      }
    }
View Full Code Here

Examples of er.extensions.eof.ERXEC.unlock()

          return 0;
        }
      };
      action.perform(ec, model.name());
    } finally {
      ec.unlock();
    }
  }
 
}
View Full Code Here

Examples of freenet.client.async.PersistentJobRunner.CheckpointLock.unlock()

                            }
                            parent.finishedEncoding(SplitFileFetcherCrossSegmentStorage.this);
                        }
                    } finally {
                        // Callback is part of the persistent job, unlock *after* calling it.
                        if(lock != null) lock.unlock(false, prio);
                    }
                }
                return true;
            }
           
View Full Code Here

Examples of freenet.support.api.LockableRandomAccessBuffer.RAFLock.unlock()

            assertTrue(a.isLocked());
            assertFalse(b.isLocked());
            assertEquals(PooledFileRandomAccessBuffer.getOpenFDs(), 1);
            assertEquals(PooledFileRandomAccessBuffer.getClosableFDs(), 0);
        } finally {
            lock.unlock();
            assertFalse(a.isLocked());
            assertEquals(PooledFileRandomAccessBuffer.getOpenFDs(), 1);
            assertEquals(PooledFileRandomAccessBuffer.getClosableFDs(), 1);
        }
        a.close();
View Full Code Here

Examples of io.fabric8.api.LockHandle.unlock()

                    String version = "1.0";
                    LOGGER.info("Importing " + fabricDir + " as version " + version);
                    importFromFileSystem(fabricDir, "", version, false);
                }
            } finally {
                writeLock.unlock();
            }
        }

        void exportProfiles(final String versionId, final String outputFileName, String wildcard) {
            LockHandle readLock = aquireReadLock();
View Full Code Here

Examples of java.util.concurrent.locks.Lock.unlock()

                    log.error(msg);
                    throw new SynapseException(msg);
                }
            }
        } finally {
            readLock.unlock();
        }
    }       

    public Member getNextApplicationMember(AlgorithmContext algorithmContext) {
        throw new UnsupportedOperationException("This algorithm doesn't operate on Members");
View Full Code Here

Examples of java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.unlock()

              try
              {
                export(resultPool,destfile,true,true, job.getCursorMap());
              }
              finally{
                readLock.unlock();
              }
             
            }
            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.