/** Enters atomic action. */ private synchronized void enterAtomicAction(Object propID, boolean priority) { AtomicActionLink nextPropID = new AtomicActionLink(propID); nextPropID.setPreviousLink(currentAtomAction); currentAtomAction = nextPropID; if (priority) { priorityRequests++; } if (requests++ == 0) { setRequestsQueue(new LinkedList<FileSystem.EventDispatcher>()); } }
final boolean isAsynchronous() { EventControl.AtomicActionLink currentPropID = this.atomActionID; while (currentPropID != null) { final Object atomicAction = currentPropID.getAtomicAction(); if (atomicAction != null && atomicAction.getClass().getName().indexOf("AsyncRefreshAtomicAction") != -1) { return true; } if (atomicAction instanceof FileSystem.AsyncAtomicAction) { if (((FileSystem.AsyncAtomicAction)atomicAction).isAsynchronous()) { return true; } } currentPropID = currentPropID.getPreviousLink(); } return false; }
currentAtomAction = currentAtomAction.getPreviousLink();
currentAtomAction = currentAtomAction.getPreviousLink();
/** Tests if FileEvent was fired from atomic action. * @param run is tested atomic action. * @return true if fired from run. * @since 1.35 */ public boolean firedFrom (FileSystem.AtomicAction run) { EventControl.AtomicActionLink currentPropID = this.atomActionID; if (run == null) return false; while (currentPropID != null) { if (run.equals(currentPropID.getAtomicAction ())) return true; currentPropID = currentPropID.getPreviousLink (); } return false; } }
/** Tests if FileEvent was fired from atomic action. * @param run is tested atomic action. * @return true if fired from run. * @since 1.35 */ public boolean firedFrom (FileSystem.AtomicAction run) { EventControl.AtomicActionLink currentPropID = this.atomActionID; if (run == null) return false; while (currentPropID != null) { if (run.equals(currentPropID.getAtomicAction ())) return true; currentPropID = currentPropID.getPreviousLink (); } return false; } }
/** Enters atomic action. */ private synchronized void enterAtomicAction (Object propID, boolean priority) { AtomicActionLink nextPropID = new AtomicActionLink (propID); nextPropID.setPreviousLink (currentAtomAction); currentAtomAction = nextPropID; if (priority) priorityRequests++; if (requests++ == 0) { requestsQueue = new LinkedList (); } }
/** Enters atomic action. */ private synchronized void enterAtomicAction (Object propID, boolean priority) { AtomicActionLink nextPropID = new AtomicActionLink (propID); nextPropID.setPreviousLink (currentAtomAction); currentAtomAction = nextPropID; if (priority) priorityRequests++; if (requests++ == 0) { requestsQueue = new LinkedList (); } }
currentAtomAction = currentAtomAction.getPreviousLink();
/** Tests if FileEvent was fired from atomic action. * @param run is tested atomic action. * @return true if fired from run. * @since 1.35 */ public boolean firedFrom(FileSystem.AtomicAction run) { EventControl.AtomicActionLink currentPropID = this.atomActionID; if (run == null) { return false; } while (currentPropID != null) { if (run.equals(currentPropID.getAtomicAction())) { return true; } currentPropID = currentPropID.getPreviousLink(); } return false; }