public <T, E extends Exception> void performConsumer(ExceptionConsumer<T, E> consumer, T param) throws E, SystemException { performConsumer(ExceptionConsumer::accept, consumer, param); }
public <E extends Exception> void performAction(ExceptionRunnable<E> action) throws E, SystemException { performConsumer((ExceptionConsumer<ExceptionRunnable<E>, E>) ExceptionRunnable::run, action); }
public void beforeCompletion() { try { if (importBacking()) try { sync.beforeCompletion(); } finally { unimportBacking(); } else { performConsumer(Synchronization::beforeCompletion, sync); } } catch (SystemException e) { throw new SynchronizationException(e); } }
public void afterCompletion(final int status) { try { if (importBacking()) try { sync.afterCompletion(status); } finally { unimportBacking(); } else { performConsumer(Synchronization::afterCompletion, sync, status); } } catch (SystemException e) { throw new SynchronizationException(e); } } }
public <T, E extends Exception> void performConsumer(ExceptionConsumer<T, E> consumer, T param) throws E, SystemException { performConsumer(ExceptionConsumer::accept, consumer, param); }
public <E extends Exception> void performAction(ExceptionRunnable<E> action) throws E, SystemException { performConsumer((ExceptionConsumer<ExceptionRunnable<E>, E>) ExceptionRunnable::run, action); }
public <E extends Exception> void performAction(ExceptionRunnable<E> action) throws E, SystemException { performConsumer((ExceptionConsumer<ExceptionRunnable<E>, E>) ExceptionRunnable::run, action); }
public <T, E extends Exception> void performConsumer(ExceptionConsumer<T, E> consumer, T param) throws E, SystemException { performConsumer(ExceptionConsumer::accept, consumer, param); }
public void beforeCompletion() { try { if (importBacking()) try { sync.beforeCompletion(); } finally { unimportBacking(); } else { performConsumer(Synchronization::beforeCompletion, sync); } } catch (SystemException e) { throw new SynchronizationException(e); } }
public void afterCompletion(final int status) { try { if (importBacking()) try { sync.afterCompletion(status); } finally { unimportBacking(); } else { performConsumer(Synchronization::afterCompletion, sync, status); } } catch (SystemException e) { throw new SynchronizationException(e); } } }
public void beforeCompletion() { try { if (importBacking()) try { sync.beforeCompletion(); } finally { unimportBacking(); } else { performConsumer(Synchronization::beforeCompletion, sync); } } catch (SystemException e) { throw new SynchronizationException(e); } }
public void afterCompletion(final int status) { try { if (importBacking()) try { sync.afterCompletion(status); } finally { unimportBacking(); } else { performConsumer(Synchronization::afterCompletion, sync, status); } } catch (SystemException e) { throw new SynchronizationException(e); } } }