@Override public void lock() throws TimeoutException { actual.lock(); }
@Override public void lock() throws TimeoutException { refDb.lock(); }
@Override public void lock() throws TimeoutException { refDb.lock(); }
@Override public void lock() throws TimeoutException { actual.lock(); }
/** * Creates a new transaction and returns it. * * @return the {@link GeogigTransaction} that was created by the operation */ @Override protected GeogigTransaction _call() { Preconditions.checkState(!(context instanceof GeogigTransaction), "Cannot start a new transaction within a transaction!"); GeogigTransaction t = new GeogigTransaction(context, UUID.randomUUID()); // Lock the repository try { refDatabase().lock(); } catch (TimeoutException e) { throw new RuntimeException(e); } try { // Copy original refs t.create(); } finally { // Unlock the repository refDatabase().unlock(); } // Return the transaction return t; } }
/** * Creates a new transaction and returns it. * * @return the {@link GeogigTransaction} that was created by the operation */ @Override protected GeogigTransaction _call() { Preconditions.checkState(!(context instanceof GeogigTransaction), "Cannot start a new transaction within a transaction!"); GeogigTransaction t = new GeogigTransaction(context, UUID.randomUUID()); // Lock the repository try { refDatabase().lock(); } catch (TimeoutException e) { Throwables.propagate(e); } try { // Copy original refs t.create(); } finally { // Unlock the repository refDatabase().unlock(); } // Return the transaction return t; } }
refDatabase().lock(); } catch (TimeoutException e) { Throwables.propagate(e);
refDatabase().lock(); } catch (TimeoutException e) { throw new RuntimeException(e);