Examples of NotConnectedException


Examples of freenet.io.comm.NotConnectedException

    if(logMINOR)
      Logger.minor(this, "Sending async: " + msg + " : " + cb + " on " + this+" for "+node.getDarknetPortNumber()+" priority "+msg.getPriority());
    if(!isConnected()) {
      if(cb != null)
        cb.disconnected();
      throw new NotConnectedException();
    }
    if(msg.getSource() != null) {
      Logger.error(this, "Messages should NOT be relayed as-is, they should always be re-created to clear any sub-messages etc, see comments in Message.java!: "+msg, new Exception("error"));
    }
    addToLocalNodeSentMessagesToStatistic(msg);
View Full Code Here

Examples of freenet.io.comm.NotConnectedException

    node.usm.send(this, ping, node.dispatcher.pingCounter);
    Message msg;
    try {
      msg = node.usm.waitFor(MessageFilter.create().setTimeout(2000).setType(DMT.FNPPong).setField(DMT.PING_SEQNO, pingID), null);
    } catch(DisconnectedException e) {
      throw new NotConnectedException("Disconnected while waiting for pong");
    }
    return msg != null;
  }
View Full Code Here

Examples of org.jredis.connector.NotConnectedException

    @Override
    public Future<Response> queueRequest (Command cmd, byte[]... args)
      throws ClientRuntimeException, ProviderException
    {
    if(!isConnected())
      throw new NotConnectedException ("Not connected!");
   
    PendingRequest pending = new PendingRequest(cmd, args);
    pendingQueue.add(pending);
    return pending;
    }
View Full Code Here

Examples of org.openqa.selenium.firefox.NotConnectedException

      // open a connection with the server, at which point it should be safe to continue
      // (since the extension shouldn't accept connections until it is ready for requests).
      long waitUntil = System.currentTimeMillis() + connectTimeout;
      while (!isConnected()) {
        if (waitUntil < System.currentTimeMillis()) {
          throw new NotConnectedException(
              delegate.getAddressOfRemoteServer(), connectTimeout);
        }

        try {
          Thread.sleep(100);
View Full Code Here

Examples of org.springframework.social.connect.NotConnectedException

  @SuppressWarnings("unchecked")
  public <A> Connection<A> getPrimaryConnection(Class<A> apiType) {
    String providerId = getProviderId(apiType);
    Connection<A> connection = (Connection<A>) findPrimaryConnection(providerId);
    if (connection == null) {
      throw new NotConnectedException(providerId);
    }
    return connection;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.