Package net.kuujo.vertigo.io.stream.impl

Examples of net.kuujo.vertigo.io.stream.impl.DefaultOutputStream


              break;
            }
          }
          if (!exists) {
            log.info(String.format("%s - Creating stream: %s", DefaultOutputPort.this, output));
            newStreams.add(new DefaultOutputStream(vertx, output));
          }
        }

        // If the port is open then that means streams have already
        // been set up. We need to add the new streams carefully
View Full Code Here


          // Only add streams to the stream list once the stream has been
          // opened. This helps ensure that we don't attempt to send messages
          // on a closed stream.
          for (OutputStreamContext output : context.streams()) {
            final OutputStream stream = new DefaultOutputStream(vertx, output);
            stream.setSendQueueMaxSize(maxQueueSize);
            stream.drainHandler(drainHandler);
            stream.open(new Handler<AsyncResult<Void>>() {
              @Override
              public void handle(AsyncResult<Void> result) {
                if (result.failed()) {
                  log.error(String.format("%s - Failed to open output stream: %s", DefaultOutputPort.this, stream));
                  counter.fail(result.cause());
View Full Code Here

TOP

Related Classes of net.kuujo.vertigo.io.stream.impl.DefaultOutputStream

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.