Package java.util

Examples of java.util.Timer$TimerImpl


 
  /* (non-Javadoc)
   * @see com.slytechs.utils.Statistics#addTimerTask(java.util.TimerTask, java.lang.String, long)
   */
  public void addTimerTask(String taskName, long repeatInterval, TimerTask task) {
    Timer timer = new Timer(taskName);
   
    tasks.add(new TimerTaskInfo(taskName, repeatInterval, task, timer));
   
    logger.trace("Adding task: " + taskName);
   
View Full Code Here


        public IPCExecutionListener(ClientProcess client) {
            this.client = client;

            //start a timer to periodically send our live output to our server
            liveOutputTimer = new Timer();
            liveOutputTimer.scheduleAtFixedRate(new TimerTask() {
                @Override
                public void run() {
                    sendLiveOutput();
                }
View Full Code Here

    this(display, icon, MessageText.getString(keyPrefix + ".title"),
        MessageText.getString(keyPrefix + ".text", textParams), details);
  }

  public MessagePopupShell(Display display,String icon,String title,String errorMessage,String details) {
    closeTimer = new Timer(true);

    this.display = display;
    this.icon = icon;
    detailsShell = new Shell(display,SWT.BORDER | SWT.ON_TOP);
    Utils.setShellIcon(detailsShell);
View Full Code Here

    }

    synchronized (this) {
      accumulator+=zoomIncrement;
      if (zoomAccumulator!=null) return;
      zoomAccumulator = new Timer();
      zoomAccumulator.schedule(new TimerTask() {
        public void run() {
          int accuCopy;
          synchronized (Frame3DJava3D.this) {
            accuCopy = accumulator;
View Full Code Here

        assertEquals(4, r.getLower().intValue());
        assertEquals(6, r.getUpper().intValue());     
    }
   
    public void testMonitor() throws SequenceFault {
        Timer t = new Timer();
        destination.getHandler();
        expectLastCall().andReturn(handler).times(15);
        handler.getTimer();
        expectLastCall().andReturn(t).times(15);
        destination.getRMAssertion();
View Full Code Here

        AcknowledgementInterval ai =
            RMUtils.getWSRMPolicyFactory().createRMAssertionTypeAcknowledgementInterval();
        ai.setMilliseconds(new BigInteger("200"));
        rma.setAcknowledgementInterval(ai);       
      
        Timer timer = new Timer();
        destination.getHandler();
        expectLastCall().andReturn(handler).times(3);
        handler.getTimer();
        expectLastCall().andReturn(timer).times(1);
        destination.getRMAssertion();
View Full Code Here

      }
      synchronized(timerLock){
        if(timer!=null){
          return; // there is a timer let it do its job
        }
        timer = new Timer(true); // do not block the application on exit 
        timer.schedule(new TimerTask() {
        public void run() {
          int n=0;
          synchronized(paintedAreas){
            Iterator it=paintedAreas.keySet().iterator();
View Full Code Here

   
    if (refreshPeriodChanged || timer == null){
      refreshPeriodChanged = false;
      if (timer!=null)
        timer.cancel();
      timer = new Timer(true); // do not block the application on exit
      timer.schedule(new SceneTimerTask(),0,refreshPeriod);
    }
  }
View Full Code Here

     */
    public void start() {
        if (isRunning()) {
            return;
        }
        timer = new Timer(true); // do not block the application on exit
        timer.scheduleAtFixedRate(new TimerTask() {
            public void run() {
                try {
                    step();
                } catch (DataException e) {
View Full Code Here

         log.warning("AlertScheduler is switched off with alertScheduler.pollInterval=" + this.period);
         return;
      }
      log.info("Starting timer with pollInterval=" + this.period + " ...");
      boolean isDaemon = true;
      this.timer = new Timer(/*"AlertScheduler", since JDK 1.5*/isDaemon);
      this.timer.schedule(this, 0L, this.period);
   }
View Full Code Here

TOP

Related Classes of java.util.Timer$TimerImpl

Copyright © 2018 www.massapicom. 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.