protected static Runs append (Runs head, Runs action) { if (head == null) return action; head.next = append(head.next, action); return head; }
protected static Runs append (Runs head, Runs action) { if (head == null) return action; head.next = append(head.next, action); return head; }
protected synchronized Cons addCons (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.insert(_listeners, cons); connectionAdded(); } }); } else { _listeners = Cons.insert(_listeners, cons); connectionAdded(); } return cons; }
protected synchronized void disconnect (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }); } else { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }
protected synchronized void removeConnection (final RListener listener) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.removeAll(_listeners, listener); connectionRemoved(); } }); } else { _listeners = Cons.removeAll(_listeners, listener); connectionRemoved(); } }
protected synchronized void removeConnection (final RListener listener) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.removeAll(_listeners, listener); connectionRemoved(); } }); } else { _listeners = Cons.removeAll(_listeners, listener); connectionRemoved(); } }
protected synchronized void disconnect (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }); } else { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }
protected synchronized Cons addCons (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.insert(_listeners, cons); connectionAdded(); } }); } else { _listeners = Cons.insert(_listeners, cons); connectionAdded(); } return cons; }
_pendingRuns = append(_pendingRuns, new Runs() { public void run () { Reactor.this.notify(notifier, a1, a2, a3);
_pendingRuns = append(_pendingRuns, new Runs() { public void run () { Reactor.this.notify(notifier, a1, a2, a3);