Examples of TimerFactory


Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  public void init(boolean aDummyCasProcessor, Properties aProps) throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getTimerImpl();
    try {
      new TimerFactory(uimaTimerClass);
    } catch (Exception e) {
      // e.printStackTrace();
      if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
        UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_use_default_timer__FINEST",
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
View Full Code Here

Examples of org.eurekastreams.web.client.ui.TimerFactory

    private static void setup()
    {
        // Reimplementing Focus panel, GWT seems to break otherwise.
        usersWhoLikedPanelWrapper = new FlowPanel()
        {
            private final TimerFactory timerFactory = new TimerFactory();
            private boolean actuallyOut = false;
            private static final int TIMER_EXPIRATION = 250;

            @Override
            public void onBrowserEvent(final Event event)
            {
                super.onBrowserEvent(event);

                if (DOM.eventGetType(event) == Event.ONMOUSEOUT)
                {
                    actuallyOut = true;

                    timerFactory.runTimer(TIMER_EXPIRATION, new TimerHandler()
                    {
                        public void run()
                        {
                            if (actuallyOut)
                            {
View Full Code Here

Examples of org.eurekastreams.web.client.ui.TimerFactory

        commentBox.addBlurHandler(new BlurHandler()
        {
            public void onBlur(final BlurEvent arg0)
            {
                TimerFactory timerFactory = new TimerFactory();
                timerFactory.runTimer(BLUR_DELAY, new TimerHandler()
                {
                    public void run()
                    {
                        if (commentBox.getText().length() == 0)
                        {
View Full Code Here

Examples of org.eurekastreams.web.client.ui.TimerFactory

    /**
     * Set up the timer and activity monitoring.
     */
    private void initialize()
    {
        masterTimer = new TimerFactory().createTimer(new TimerHandler()
        {
            private Date lastActivity = new Date();

            public void run()
            {
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.