Package org.hive2hive.core.events.implementations

Examples of org.hive2hive.core.events.implementations.ConnectionEvent


  private void notifyConnectionStatus(boolean isSuccessful) {
    Iterator<INetworkEventListener> iterator = eventListeners.iterator();
    while (iterator.hasNext()) {
      if (isSuccessful)
        iterator.next().onConnectionSuccess(new ConnectionEvent(networkConfiguration));
      else
        iterator.next().onConnectionFailure(new ConnectionEvent(networkConfiguration));
    }
  }
View Full Code Here


 
  private void notifyDisconnectionStatus(boolean isSuccessful) {
    Iterator<INetworkEventListener> iterator = eventListeners.iterator();
    while (iterator.hasNext()) {
      if (isSuccessful)
        iterator.next().onDisconnectionSuccess(new ConnectionEvent(networkConfiguration));
      else
        iterator.next().onDisconnectionFailure(new ConnectionEvent(networkConfiguration));
    }
  }
View Full Code Here

TOP

Related Classes of org.hive2hive.core.events.implementations.ConnectionEvent

Copyright © 2018 www.massapicom. 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.