Package com.sissi.server.exchange

Examples of com.sissi.server.exchange.Exchanger.host()


      try (DBCursor cursor = BridgeExchangerContext.this.config.collection().find(BasicDBObjectBuilder.start(BridgeExchangerContext.this.date, BasicDBObjectBuilder.start("$lt", System.currentTimeMillis() - BridgeExchangerContext.this.timeout).get()).get(), BridgeExchangerContext.this.filter)) {
        while (cursor.hasNext()) {
          Exchanger exchanger = BridgeExchangerContext.this.activate(MongoUtils.asString(DBObject.class.cast(cursor.next()), Dictionary.FIELD_HOST));
          // Double check 4 multi thread
          if (exchanger != null) {
            BridgeExchangerContext.this.log.warn("Timeout socks: " + exchanger.host());
            exchanger.close(Terminal.ALL);
          }
        }
      }
      return this;
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.