Tabnine Logo
ChannelConfigurator.postConfigure
Code IndexAdd Tabnine to your IDE (free)

How to use
postConfigure
method
in
org.glassfish.grizzly.nio.ChannelConfigurator

Best Java code snippets using org.glassfish.grizzly.nio.ChannelConfigurator.postConfigure (Showing top 20 results out of 315)

origin: org.glassfish.grizzly/grizzly-http-server-core

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: org.glassfish.grizzly/grizzly-core

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: javaee/grizzly

private void configureAcceptedChannel(final SocketChannel acceptedChannel)
    throws IOException {
  final TCPNIOTransport tcpNIOTransport = (TCPNIOTransport) transport;
  tcpNIOTransport.getChannelConfigurator()
      .preConfigure(transport, acceptedChannel);
  tcpNIOTransport.getChannelConfigurator()
      .postConfigure(transport, acceptedChannel);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: javaee/grizzly

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: javaee/grizzly

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: javaee/grizzly

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: javaee/grizzly

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: javaee/grizzly

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

protected static void onConnectedAsync(final TCPNIOConnection connection,
    final CompletionHandler<Connection> completionHandler)
    throws IOException {
  final TCPNIOTransport tcpTransport =
      (TCPNIOTransport) connection.getTransport();
  final SocketChannel channel = (SocketChannel) connection.getChannel();
  
  try {
    if (!channel.isConnected()) {
      channel.finishConnect();
    }
    connection.resetProperties();
    // Deregister OP_CONNECT interest
    connection.disableIOEvent(IOEvent.CLIENT_CONNECTED);
    // we can call configure for ready channel
    tcpTransport.getChannelConfigurator().postConfigure(tcpTransport, channel);
  } catch (Exception e) {
    abortConnection(connection, completionHandler, e);
    throw Exceptions.makeIOException(e);
  }
  
  if (connection.notifyReady()) {
    tcpTransport.fireIOEvent(IOEvent.CONNECTED, connection,
        new EnableReadHandler(completionHandler));
  }
}
org.glassfish.grizzly.nioChannelConfiguratorpostConfigure

Javadoc

This method is called by a NIOTransport to configure newly created SelectableChannel once it's been connected/accepted and become ready to use.

Popular methods of ChannelConfigurator

  • preConfigure
    This method is called by a NIOTransport to configure newly created SelectableChannel at the very ear

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • 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