Tabnine Logo
IoServiceConfig.getFilterChainBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
getFilterChainBuilder
method
in
org.littleshoot.mina.common.IoServiceConfig

Best Java code snippets using org.littleshoot.mina.common.IoServiceConfig.getFilterChainBuilder (Showing top 5 results out of 315)

origin: org.littleshoot/mina-port

getFilterChainBuilder().buildFilterChain(
    session.getFilterChain());
req.config.getFilterChainBuilder().buildFilterChain(
    session.getFilterChain());
req.config.getThreadModel().buildFilterChain(
origin: org.littleshoot/mina-port

private void newSession(SocketChannel ch, IoHandler handler,
    IoServiceConfig config, ConnectFuture connectFuture)
    throws IOException {
  SocketSessionImpl session = new SocketSessionImpl(this,
      nextProcessor(), getListeners(), config, ch, handler, ch
          .socket().getRemoteSocketAddress());
  try {
    getFilterChainBuilder().buildFilterChain(session.getFilterChain());
    config.getFilterChainBuilder().buildFilterChain(
        session.getFilterChain());
    config.getThreadModel().buildFilterChain(session.getFilterChain());
  } catch (Throwable e) {
    throw (IOException) new IOException("Failed to create a session.")
        .initCause(e);
  }
  // Set the ConnectFuture of the specified session, which will be
  // removed and notified by AbstractIoFilterChain eventually.
  session.setAttribute(AbstractIoFilterChain.CONNECT_FUTURE,
      connectFuture);
  // Forward the remaining process to the SocketIoProcessor.
  session.getIoProcessor().addNew(session);
}
origin: org.littleshoot/mina-port

private void buildFilterChain(RegistrationRequest req, IoSession session)
    throws Exception {
  getFilterChainBuilder().buildFilterChain(session.getFilterChain());
  req.config.getFilterChainBuilder().buildFilterChain(
      session.getFilterChain());
  req.config.getThreadModel().buildFilterChain(session.getFilterChain());
}
origin: org.littleshoot/mina-port

private void buildFilterChain(RegistrationRequest req, IoSession session)
    throws Exception {
  this.getFilterChainBuilder().buildFilterChain(session.getFilterChain());
  req.config.getFilterChainBuilder().buildFilterChain(
      session.getFilterChain());
  req.config.getThreadModel().buildFilterChain(session.getFilterChain());
}
origin: org.littleshoot/mina-port

IoFilterChain filterChain = localSession.getFilterChain();
this.getFilterChainBuilder().buildFilterChain(filterChain);
config.getFilterChainBuilder().buildFilterChain(filterChain);
config.getThreadModel().buildFilterChain(filterChain);
entry.getAcceptor().getFilterChainBuilder().buildFilterChain(
    filterChain);
entry.getConfig().getFilterChainBuilder().buildFilterChain(
    filterChain);
entry.getConfig().getThreadModel().buildFilterChain(filterChain);
org.littleshoot.mina.commonIoServiceConfiggetFilterChainBuilder

Javadoc

Returns the IoFilterChainBuilder which will modify the IoFilterChain of all IoSessions which is created with this configuration. The default value is an empty DefaultIoFilterChainBuilder.

Popular methods of IoServiceConfig

  • setThreadModel
    Sets the default ThreadModel of the IoService. If you specify null, this property will be set to the
  • getSessionConfig
    Resturns the default configuration of the new IoSessions.
  • getThreadModel
    Returns the default ThreadModel of the IoService. The default value is a ExecutorThreadModel() whose

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top PhpStorm plugins
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