@Override public boolean runAfter(List tasks,int size){
  for (int i=0; i < size; i++) {
    CacheTask t=(CacheTask)tasks.get(i);
    if (t instanceof RegisterListenerTask || t instanceof LookupTask || t instanceof NotifyEventTask) {
      ProxyReg otherReg=t.getProxyReg();
      if (reg.equals(otherReg)) {
        if (thisTaskSeqN > t.getSeqN())         return true;
      }
    }
  }
  return super.runAfter(tasks,size);
}

@ Override public boolean runAfter ( List tasks , int size ) { for ( int i = 0 ; i < size ; i ++ ) { CacheTask t = ( CacheTask ) tasks . get ( i ) ; if ( t instanceof RegisterListenerTask || t instanceof LookupTask || t instanceof NotifyEventTask ) { ProxyReg otherReg = t . getProxyReg ( ) ; if ( reg . equals ( otherReg ) ) { if ( thisTaskSeqN > t . getSeqN ( ) ) return true ; } } } return super . runAfter ( tasks , size ) ; }
returns true if the current instance of this task must be run after at least one task in the task manager queue . the criteria for determining what value to return : if the task list contains any registerlistenertasks , other lookuptasks , or notifyeventtasks associated with this task ' s lookup service ( proxyreg ) , if those tasks were queued prior to this task ( have lower sequence numbers ) , then run those tasks before this task ( return true ) . otherwise this task can be run immediately ( return false ) . this method was added to address bug id 6291851 .
