?? cycleendjmxnotification.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 + -