protected void checkForRebroadcasts() { Digest tmp=getDigest(); boolean cancel_rebroadcasting=false; rebroadcast_digest_lock.lock(); try { cancel_rebroadcasting=isGreaterThanOrEqual(tmp, rebroadcast_digest); } catch(Throwable t) { ; } finally { rebroadcast_digest_lock.unlock(); } if(cancel_rebroadcasting) cancelRebroadcasting(); }
/** * <b>Callback</b>. Called by superclass when event may be handled.<p> <b>Do not use {@code passUp} in this * method as the event is passed up by default by the superclass after this method returns !</b> */ public Object up(Event evt) { switch(evt.getType()) { case Event.STABLE: // generated by STABLE layer. Delete stable messages passed in arg stable(evt.getArg()); return null; // do not pass up further (Bela Aug 7 2001) case Event.SUSPECT: // release the promise if rebroadcasting is in progress... otherwise we wait forever. there will be a new // flush round anyway if(rebroadcasting) cancelRebroadcasting(); break; } return up_prot.up(evt); }
protected void checkForRebroadcasts() { Digest tmp=getDigest(); boolean cancel_rebroadcasting=false; rebroadcast_digest_lock.lock(); try { cancel_rebroadcasting=isGreaterThanOrEqual(tmp, rebroadcast_digest); } catch(Throwable t) { ; } finally { rebroadcast_digest_lock.unlock(); } if(cancel_rebroadcasting) cancelRebroadcasting(); }
/** * <b>Callback</b>. Called by superclass when event may be handled.<p> <b>Do not use {@code passUp} in this * method as the event is passed up by default by the superclass after this method returns !</b> */ public Object up(Event evt) { switch(evt.getType()) { case Event.STABLE: // generated by STABLE layer. Delete stable messages passed in arg stable(evt.getArg()); return null; // do not pass up further (Bela Aug 7 2001) case Event.SUSPECT: // release the promise if rebroadcasting is in progress... otherwise we wait forever. there will be a new // flush round anyway if(rebroadcasting) cancelRebroadcasting(); break; } return up_prot.up(evt); }