Tabnine Logo
TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * 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.mule.glassfish.grizzly/grizzly-framework

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: org.glassfish.grizzly/grizzly-websockets-server

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: org.glassfish.grizzly/grizzly-http-server-core

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: org.glassfish.grizzly/grizzly-core

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
origin: javaee/grizzly

    new RegisterAcceptedChannelCompletionHandler(acceptListener),
    0);
acceptListener = null;
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;
  }
}
org.glassfish.grizzly.nio.transportTCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
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