Tabnine Logo
Connector.getExecutor
Code IndexAdd Tabnine to your IDE (free)

How to use
getExecutor
method
in
org.eclipse.jetty.server.Connector

Best Java code snippets using org.eclipse.jetty.server.Connector.getExecutor (Showing top 20 results out of 315)

origin: neo4j/neo4j

  private static Connector connectorMock( String name )
  {
    Connector connector = mock( Connector.class );
    when( connector.getName() ).thenReturn( name );
    when( connector.getExecutor() ).thenReturn( Runnable::run );
    when( connector.getServer() ).thenReturn( new Server() );
    return connector;
  }
}
origin: jooby-project/jooby

@Override
protected void handshake(final Runnable handler) throws Exception {
 /** Infinite timeout because the continuation is never resumed but only completed on close. */
 req.getAsyncContext().setTimeout(0L);
 /** Server sent events headers. */
 rsp.setStatus(HttpServletResponse.SC_OK);
 rsp.setHeader("Connection", "Close");
 rsp.setContentType("text/event-stream; charset=utf-8");
 rsp.flushBuffer();
 HttpChannel channel = rsp.getHttpChannel();
 Connector connector = channel.getConnector();
 Executor executor = connector.getExecutor();
 executor.execute(handler);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

protected NegotiatingServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)
{
  super(endPoint, connector.getExecutor());
  this.connector = connector;
  this.protocols = protocols;
  this.defaultProtocol = defaultProtocol;
  this.engine = engine;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

protected ProxyConnection(EndPoint endp, Connector connector, String next)
{
  super(endp,connector.getExecutor());
  _connector=connector;
  _next=next;
}
origin: Nextdoor/bender

protected NegotiatingServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)
{
  super(endPoint, connector.getExecutor());
  this.connector = connector;
  this.protocols = protocols;
  this.defaultProtocol = defaultProtocol;
  this.engine = engine;
}
origin: jenkinsci/winstone

protected NegotiatingServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)
{
  super(endPoint, connector.getExecutor());
  this.connector = connector;
  this.protocols = protocols;
  this.defaultProtocol = defaultProtocol;
  this.engine = engine;
}
origin: jenkinsci/winstone

protected ProxyProtocolV1orV2Connection(EndPoint endp, Connector connector, String next)
{
  super(endp, connector.getExecutor());
  _connector = connector;
  _next = next;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

protected void execute(Runnable task)
{
  _connector.getExecutor().execute(task);
}
origin: Nextdoor/bender

protected void execute(Runnable task)
{
  _connector.getExecutor().execute(task);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

protected void execute(Runnable task)
{
  _connector.getExecutor().execute(task);
}
origin: com.teradata.airlift/http-server

private static void checkSufficientThreads(Connector connector, String name)
{
  if (connector == null) {
    return;
  }
  Executor executor = connector.getExecutor();
  if (executor instanceof ThreadPool) {
    ThreadPool queuedThreadPool = (ThreadPool) executor;
    checkState(!queuedThreadPool.isLowOnThreads(), "insufficient threads configured for %s connector", name);
  }
}
origin: org.eclipse.jetty.spdy/spdy-server

private ServerSPDYConnection(Connector connector, EndPoint endPoint, Parser parser,
               ServerSessionFrameListener listener, boolean dispatchIO, int bufferSize)
{
  super(endPoint, connector.getByteBufferPool(), parser, connector.getExecutor(),
      dispatchIO, bufferSize);
  this.listener = listener;
}
origin: jenkinsci/winstone

protected ProxyProtocolV1Connection(EndPoint endp, Connector connector, String next, ByteBuffer buffer)
{
  super(endp, connector.getExecutor());
  _connector = connector;
  _next = next;
  _length = buffer.remaining();
  parse(buffer);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine);
}
origin: org.apache.qpid/qpid-broker-plugins-management-http

private SslConnection newSslConnection(final Connector connector, final EndPoint endPoint, final SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine);
}
origin: Nextdoor/bender

protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine);
}
origin: jenkinsci/winstone

protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
  return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine, isDirectBuffersForEncryption(), isDirectBuffersForDecryption());
}
origin: jenkinsci/winstone

public HttpConnection(HttpConfiguration config, Connector connector, EndPoint endPoint, HttpCompliance compliance, boolean recordComplianceViolations)
{
  super(endPoint, connector.getExecutor());
  _config = config;
  _connector = connector;
  _bufferPool = _connector.getByteBufferPool();
  _generator = newHttpGenerator();
  _channel = newHttpChannel();
  _input = _channel.getRequest().getHttpInput();
  _parser = newHttpParser(compliance);
  _recordHttpComplianceViolations = recordComplianceViolations;
  if (LOG.isDebugEnabled())
    LOG.debug("New HTTP Connection {}", this);
}
org.eclipse.jetty.serverConnectorgetExecutor

Popular methods of Connector

  • setPort
  • stop
  • getLocalPort
  • getName
  • start
  • getServer
  • setHost
    Set the hostname of the interface to bind to.
  • getConnectionFactories
  • getPort
  • getConnectionFactory
  • getHost
  • getByteBufferPool
  • getHost,
  • getByteBufferPool,
  • close,
  • getProtocols,
  • getScheduler,
  • isConfidential,
  • isIntegral,
  • shutdown,
  • getDefaultConnectionFactory

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • From CI to AI: The AI layer in your organization
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