com.jamonapi.Monitor.getListeners()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中com.jamonapi.Monitor.getListeners()方法的一些代码示例,展示了Monitor.getListeners()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getListeners()方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:getListeners

Monitor.getListeners介绍

暂无

代码示例

代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi

/**
 * Add a listener that receives notification every time this monitors add
 * method is called. If null is passed all associated Listeners will be
 * detached.
 */
// Some jamon 2.4 introduced methods. Mostly listener related.

 public ListenerType getListenerType(String listenerType) {
    return getListeners().getListenerType(listenerType);
  }

代码示例来源:origin: stevensouza/jamonapi

/** pass in a valid listener type (min, max, value, maxactive) and get the ListenerType
 * 
 */
public ListenerType getListenerType(String listenerType) {
  Listeners listeners=getListeners();
  if (listeners==null)
    return null;
  else
    return listeners.getListenerType(listenerType);
}

相关文章