Package com.davfx.ninio.ping

Examples of com.davfx.ninio.ping.PingClient


    return new Connectable() {
      @Override
      public void connect(PingClientHandler clientHandler) {
        Hold c = clients.get(address);
        if (c == null) {
          PingClient pingClient = new PingClient();
          if (!Double.isNaN(minTimeToRepeat)) {
            pingClient.withMinTimeToRepeat(minTimeToRepeat);
          }
          if (!Double.isNaN(repeatTime)) {
            pingClient.withRepeatTime(repeatTime);
          }
          if (!Double.isNaN(timeoutFromBeginning)) {
            pingClient.withTimeoutFromBeginning(timeoutFromBeginning);
          }
          if (readyFactory != null) {
            pingClient.override(readyFactory);
          }
          c = new Hold(pingClient.withAddress(address).withQueue(queue, repeatExecutor));
         
          final Hold cc = c;
          clients.put(address, cc);
          c.handlers.add(clientHandler);
         
View Full Code Here


    return new Connectable() {
      @Override
      public void connect(PingClientHandler clientHandler) {
        Hold c = clients.get(address);
        if (c == null) {
          PingClient snmpClient = new PingClient();
          if (!Double.isNaN(minTimeToRepeat)) {
            snmpClient.withMinTimeToRepeat(minTimeToRepeat);
          }
          if (!Double.isNaN(repeatTime)) {
            snmpClient.withRepeatTime(repeatTime);
          }
          if (!Double.isNaN(timeoutFromBeginning)) {
            snmpClient.withTimeoutFromBeginning(timeoutFromBeginning);
          }
          if (readyFactory != null) {
            snmpClient.override(readyFactory);
          }
          c = new Hold(snmpClient.withAddress(address).withQueue(queue, repeatExecutor));
         
          Hold cc = c;
          clients.put(address, cc);
          c.handlers.add(clientHandler);
         
View Full Code Here

TOP

Related Classes of com.davfx.ninio.ping.PingClient

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.