congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TCPNIOTransport.setNIOChannelDistributor
Code IndexAdd Tabnine to your IDE (free)

How to use
setNIOChannelDistributor
method
in
org.glassfish.grizzly.nio.transport.TCPNIOTransport

Best Java code snippets using org.glassfish.grizzly.nio.transport.TCPNIOTransport.setNIOChannelDistributor (Showing top 8 results out of 315)

origin: com.ning/async-http-client

        .setMaxPendingBytesPerConnection(AsyncQueueWriter.AUTO_SIZE);
clientTransport.setNIOChannelDistributor(
    new RoundRobinConnectionDistributor(clientTransport, false, false));
origin: javaee/grizzly

transport.setNIOChannelDistributor(distributor);
origin: org.mule.modules/mule-module-http

transport.setNIOChannelDistributor(new RoundRobinConnectionDistributor(transport, true, true));
origin: org.mule.services/mule-service-http

public GrizzlyServerManager(ExecutorService selectorPool, ExecutorService workerPool,
              ExecutorService idleTimeoutExecutorService, HttpListenerRegistry httpListenerRegistry,
              TcpServerSocketProperties serverSocketProperties, int selectorCount) {
 this.httpListenerRegistry = httpListenerRegistry;
 requestHandlerFilter = new GrizzlyRequestDispatcherFilter(httpListenerRegistry);
 sslFilterDelegate = new GrizzlyAddressDelegateFilter<>();
 httpServerFilterDelegate = new GrizzlyAddressDelegateFilter<>();
 FilterChainBuilder serverFilterChainBuilder = FilterChainBuilder.stateless();
 serverFilterChainBuilder.add(new TransportFilter());
 serverFilterChainBuilder.add(sslFilterDelegate);
 serverFilterChainBuilder.add(httpServerFilterDelegate);
 serverFilterChainBuilder.add(requestHandlerFilter);
 // Initialize Transport
 executorProvider = new WorkManagerSourceExecutorProvider();
 TCPNIOTransportBuilder transportBuilder = TCPNIOTransportBuilder.newInstance().setOptimizedForMultiplexing(true)
   .setIOStrategy(new ExecutorPerServerAddressIOStrategy(executorProvider));
 configureServerSocketProperties(transportBuilder, serverSocketProperties);
 transport = transportBuilder.build();
 transport
   .setNIOChannelDistributor(new RoundRobinConnectionDistributor(transport,
                                  selectorCount >= MIN_SELECTORS_FOR_DEDICATED_ACCEPTOR,
                                  true));
 transport.setSelectorRunnersCount(selectorCount);
 transport.setWorkerThreadPool(workerPool);
 transport.setKernelThreadPool(selectorPool);
 // Set filterchain as a Transport Processor
 transport.setProcessor(serverFilterChainBuilder.build());
 this.idleTimeoutExecutorService = idleTimeoutExecutorService;
}
origin: io.gatling/async-http-client

        .setMaxPendingBytesPerConnection(AsyncQueueWriter.AUTO_SIZE);
clientTransport.setNIOChannelDistributor(
    new RoundRobinConnectionDistributor(clientTransport, false, false));
origin: org.glassfish.grizzly/grizzly-http-client

        .setMaxPendingBytesPerConnection(AsyncQueueWriter.AUTO_SIZE);
clientTransport.setNIOChannelDistributor(
    new RoundRobinConnectionDistributor(clientTransport, false, false));
origin: javaee/grizzly-ahc

        .setMaxPendingBytesPerConnection(AsyncQueueWriter.AUTO_SIZE);
clientTransport.setNIOChannelDistributor(
    new RoundRobinConnectionDistributor(clientTransport, false, false));
origin: org.apache.apex/apex-shaded-ning19

        .setMaxPendingBytesPerConnection(AsyncQueueWriter.AUTO_SIZE);
clientTransport.setNIOChannelDistributor(
    new RoundRobinConnectionDistributor(clientTransport, false, false));
org.glassfish.grizzly.nio.transportTCPNIOTransportsetNIOChannelDistributor

Popular methods of TCPNIOTransport

  • start
  • bind
  • setProcessor
  • shutdownNow
  • isStopped
  • getAsyncQueueIO
  • setTcpNoDelay
  • setLinger
  • unbind
  • getProcessor
  • getServerConnectionBackLog
    Get the default server connection backlog size.
  • setIOStrategy
  • getServerConnectionBackLog,
  • setIOStrategy,
  • setKeepAlive,
  • setSelectorRunnersCount,
  • setServerConnectionBackLog,
  • shutdown,
  • connect,
  • getLinger,
  • isKeepAlive,
  • isTcpNoDelay

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reference (javax.naming)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now