Tabnine Logo
TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
constructor

Best Java code snippets using org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler.<init> (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: javaee/grizzly

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: javaee/grizzly

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: javaee/grizzly

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: javaee/grizzly

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Asynchronously accept a {@link Connection}
 *
 * @return {@link Future}
 * @throws java.io.IOException
 */
protected GrizzlyFuture<Connection> acceptAsync() throws IOException {
  if (!isOpen()) {
    throw new IOException("Connection is closed");
  }
  synchronized (acceptSync) {
    final FutureImpl<Connection> future = SafeFutureImpl.create();
    final SocketChannel acceptedChannel = doAccept();
    if (acceptedChannel != null) {
      configureAcceptedChannel(acceptedChannel);
      final TCPNIOConnection clientConnection =
          createClientConnection(acceptedChannel);
      registerAcceptedChannel(clientConnection,
          new RegisterAcceptedChannelCompletionHandler(future),
          0);
    } else {
      acceptListener = future;
      enableIOEvent(IOEvent.SERVER_ACCEPT);
    }
    return future;
  }
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: org.glassfish.grizzly/grizzly-core

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: org.mule.glassfish.grizzly/grizzly-framework

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
origin: javaee/grizzly

public TCPNIOServerConnection(TCPNIOTransport transport,
    ServerSocketChannel serverSocketChannel) {
  super(transport, serverSocketChannel);
  defaultCompletionHandler =
      new RegisterAcceptedChannelCompletionHandler();
}
org.glassfish.grizzly.nio.transportTCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler<init>

Popular methods of TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getExternalFilesDir (Context)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getSystemService (Context)
    • FileWriter (java.io)
      A specialized Writer that writes to a file in the file system. All write requests made by calling me
    • Connection (java.sql)
      A connection represents a link from a Java application to a database. All SQL statements and results
    • MessageFormat (java.text)
      Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
    • Executors (java.util.concurrent)
      Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • 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