Examples of ExecutorReactor


Examples of org.simpleframework.transport.reactor.ExecutorReactor

    * @param select this is the number of selector threads to use
    */
   public ContainerSelector(Container handler, Allocator allocator, int count, int select) throws IOException {
      this.executor = new PoolExecutor(Dispatcher.class, count);
      this.collect = new PoolExecutor(Reader.class, count);
      this.reactor = new ExecutorReactor(collect, select);    
      this.allocator = allocator;
      this.handler = handler;
   }
View Full Code Here

Examples of org.simpleframework.transport.reactor.ExecutorReactor

    * @param processor this is used to process the transports
    * @param count this is the number of threads used by this
    */
   public SecureNegotiator(Processor processor, int count) throws IOException {         
     this.executor = new PoolExecutor(Notifier.class, count);         
     this.reactor = new ExecutorReactor(executor);           
     this.processor = processor;                 
  
View Full Code Here

Examples of org.simpleframework.transport.reactor.ExecutorReactor

    * @param count this is the number of threads per thread pool
    * @param select this is the number of selector threads to use
    */
   public ContainerSelector(Container handler, Allocator allocator, int count, int select) throws IOException {
      this.collect = new PoolExecutor(Reader.class, count);
      this.reactor = new ExecutorReactor(collect, select);
      this.executor = new PoolExecutor(Dispatcher.class, count);     
      this.tracker = new CookieTracker();
      this.allocator = allocator;
      this.handler = handler;
   }
View Full Code Here

Examples of org.simpleframework.transport.reactor.ExecutorReactor

    * @param transporter this is used to process the transports
    * @param count this is the number of threads used by this
    */
   public SecureNegotiator(Processor transporter, int count) throws IOException {         
     this.executor = new PoolExecutor(Notifier.class, count);         
     this.reactor = new ExecutorReactor(executor);           
     this.transporter = transporter;                 
  
View Full Code Here

Examples of org.simpleframework.transport.reactor.ExecutorReactor

      while(!channel.finishConnect()) { // wait to finish connection
         Thread.sleep(10);
      };
      ExecutorService executor = Executors.newFixedThreadPool(20);
      Reactor reactor = new ExecutorReactor(executor);
     // Transport transport = new SocketTransport(channel, reactor, 2, 3);//XXX bug
      MockSocket pipeline = new MockSocket(channel);
      Transport transport = new SocketTransport(pipeline, reactor, 8192);
      OutputStream out = new TransportOutputStream(transport);

     // dumper.start();
      testOutputStream(consumer, out, size, repeat);

      out.close();
      executor.shutdown();
      channel.close();
      reactor.stop();
    //  dumper.kill();
      Thread.sleep(100);
   }
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.