⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cycleendjmxnotification.java

📁 一个简易的轮训小程序 哈哈哈哈哈哈后 嘿嘿嘿嘿黑诶
💻 JAVA
字号:
package org.sadun.util.polling;

import javax.management.ObjectName;

/**
 * A JMX notification class equivalent to a {@link org.sadun.util.polling.CycleEndEvent}
 * 
 *
 * @author Cristiano Sadun
 */
public class CycleEndJMXNotification extends BaseJMXNotification {
   
    
    public static final String NOTIFICATION_TYPE = "org.sadun.polling.jmx.cycle.end";
    
    CycleEndJMXNotification(ObjectName pollerName, 
            SequenceNumberGenerator sqg, 
            CycleEndEvent evt) {
        super(NOTIFICATION_TYPE,
                pollerName,
                sqg,
                evt,
                "New base time: "+evt.getNewBaseTime());
    }
    
    /**
     * Return the new base time (see {@link CycleEndEvent#getNewBaseTime()}.
     * 
     * @return the new base time (see {@link CycleEndEvent#getNewBaseTime()}.
     */
    public long [] getNewBaseTime() { return ((CycleEndEvent) event).getNewBaseTime(); }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -