Package java.util

Examples of java.util.TimerTask.cancel()


        }
        ConversationContext discardedContext = conversationContexts
                .remove(mostStaleId);
        TimerTask task = discardedContext.getTimerTask();
        if (task != null) {
            task.cancel();
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug("Discarding most stale conversation context with ID "
                    + discardedContext.getId());
        }
View Full Code Here


        ConversationContext context = null;
        if (conversationContexts != null) {
            context = conversationContexts.remove(conversationId);
            TimerTask task = context.getTimerTask();
            if (task != null) {
                task.cancel();
            }
        }

        return context;
View Full Code Here

        }
        ConversationContext discardedContext = conversationContexts
                .remove(mostStaleId);
        TimerTask task = discardedContext.getTimerTask();
        if (task != null) {
            task.cancel();
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug("Discarding most stale "
                    + discardedContext.getConversationName()
                    + "conversation context with ID "
View Full Code Here

  }
 
  public void discoveryInfoResult(JID jid,String id,IQDiscoInfo info)
  {
    TimerTask t =(TimerTask) timeoutTimers.remove(id);
    if(t!=null)t.cancel();
    infoCache.put(jid,info);
    DiscoveryListener d = infoRequests.remove(id);
    if(d!=null) d.discoveryInfoResult(jid,info);
  }
 
View Full Code Here

  }
 
  public void discoveryItemResult(JID jid,String id,IQDiscoItems item)
  {
    TimerTask t =(TimerTask) timeoutTimers.remove(id);
    if(t!=null)t.cancel();
    itemCache.put(jid,item);
    DiscoveryListener d =itemRequests.remove(id);
    if(d!=null)d.discoveryItemResult(jid,item);
  }
 
View Full Code Here

//  }

  public void discoError(String id,JID jid)
  {//no disco so try browse
    TimerTask t = timeoutTimers.remove(id);
    if(t!=null)t.cancel();
//    String newID = "Jeti_Browse_" + idCount++;
//    InfoQuery iq =new InfoQuery(jid,"get",newID,new IQBrowse());
//    backend.send(iq);
//    timeout(iq);
//    Object o = infoRequests.remove(id);
View Full Code Here

        xml.append("</query>");
    }

    public synchronized void error(String id,JID jid) {
        TimerTask t =(TimerTask) timeoutTimers.remove(id);
        if (t != null)t.cancel();
        IQMUCInterface e = (IQMUCInterface)requests.remove(id);
        if (e != null) {
            e.timeout();
        }
    }
View Full Code Here

              }
            }
          };
          timerToDetectLongRunningAutomata.schedule(recordPta,1000l*60l*20l);
          actualAutomaton = learnerOfPairs.learnMachine(new LinkedList<List<Label>>(),new LinkedList<List<Label>>());
          recordPta.cancel();
        }
       
        VertID rejectVertexID = null;
        for(CmpVertex v:actualAutomaton.transitionMatrix.keySet())
          if (!v.isAccept())
View Full Code Here

              }
            }
          };
          timerToDetectLongRunningAutomata.schedule(recordPta,1000l*60l*20l);
          actualAutomaton = learnerOfPairs.learnMachine(new LinkedList<List<Label>>(),new LinkedList<List<Label>>());
          recordPta.cancel();
        }
       
        VertID rejectVertexID = null;
        for(CmpVertex v:actualAutomaton.transitionMatrix.keySet())
          if (!v.isAccept())
View Full Code Here

              }
            }
          };
          timerToDetectLongRunningAutomata.schedule(recordPta,1000l*60l*20l);
          actualAutomaton = learnerOfPairs.learnMachine(new LinkedList<List<Label>>(),new LinkedList<List<Label>>());
          recordPta.cancel();
        }
       
        VertID rejectVertexID = null;
        for(CmpVertex v:actualAutomaton.transitionMatrix.keySet())
          if (!v.isAccept())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.