/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired. * <P> * <em>Warning:</em> the action should not take a significant amount of time, and should finish as soon as * possible--otherwise all event notifications will be blocked. * <p><strong>Warning:</strong> do not be misled by the name of this method; * it does not require the filesystem to treat the changes as an atomic block of * commits in the database sense! That is, if an exception is thrown in the middle * of the action, partial results will not be undone (in general this would be * impossible to implement for all filesystems anyway). * @param run the action to run * @exception IOException if there is an <code>IOException</code> thrown in the actions' {@link AtomicAction#run run} * method */ public final void runAtomicAction(final AtomicAction run) throws IOException { getEventControl().runAtomicAction(run); }
/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired. * <P> * <em>Warning:</em> the action should not take a significant amount of time, and should finish as soon as * possible--otherwise all event notifications will be blocked. * <p><strong>Warning:</strong> do not be misled by the name of this method; * it does not require the filesystem to treat the changes as an atomic block of * commits in the database sense! That is, if an exception is thrown in the middle * of the action, partial results will not be undone (in general this would be * impossible to implement for all filesystems anyway). * @param run the action to run * @exception IOException if there is an <code>IOException</code> thrown in the actions' {@link AtomicAction#run run} * method */ public final void runAtomicAction (final AtomicAction run) throws IOException { getEventControl ().runAtomicAction (run); }
/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired. * <P> * <em>Warning:</em> the action should not take a significant amount of time, and should finish as soon as * possible--otherwise all event notifications will be blocked. * <p><strong>Warning:</strong> do not be misled by the name of this method; * it does not require the filesystem to treat the changes as an atomic block of * commits in the database sense! That is, if an exception is thrown in the middle * of the action, partial results will not be undone (in general this would be * impossible to implement for all filesystems anyway). * @param run the action to run * @exception IOException if there is an <code>IOException</code> thrown in the actions' {@link AtomicAction#run run} * method */ public final void runAtomicAction (final AtomicAction run) throws IOException { getEventControl ().runAtomicAction (run); }