Package com.twitter.hbc.core.event

Examples of com.twitter.hbc.core.event.ConnectionEvent


  StatusLine establishConnection(Connection conn, HttpUriRequest request) {
    logger.info("{} Establishing a connection", name);
    // establish connection
    StatusLine status = null;
    try {
      addEvent(new ConnectionEvent(EventType.CONNECTION_ATTEMPT, request));
      status = conn.connect(request);
    } catch (UnknownHostException e) {
      // banking on some httpHosts.nextHost() being legitimate, or else this connection will fail.
      logger.warn("{} Unknown host - {}", name, request.getURI().getHost());
      addEvent(new Event(EventType.CONNECTION_ERROR, e));
View Full Code Here

TOP

Related Classes of com.twitter.hbc.core.event.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.