All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gu.dtalk.engine.ConnectProbers Maven / Gradle / Ivy

package gu.dtalk.engine;

import java.util.LinkedHashSet;

/**
 * DTALK连接侦听器管理器
* 实现支持多个{@link ConnectProber}实例 * @author guyadong * */ public class ConnectProbers extends LinkedHashSetimplements ConnectProber{ private static final long serialVersionUID = 1L; public ConnectProbers() { super(); } @Override public void onDisconnect() { for(ConnectProber prober:this){ if(null != prober){ try { prober.onDisconnect(); } catch (Exception e) { e.printStackTrace(); } } } } @Override public void onConnect() { for(ConnectProber prober:this){ if(null != prober){ try{ prober.onConnect(); } catch (Exception e) { e.printStackTrace(); } } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy