congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConnectFuture.setSession
Code IndexAdd Tabnine to your IDE (free)

How to use
setSession
method
in
org.littleshoot.mina.common.ConnectFuture

Best Java code snippets using org.littleshoot.mina.common.ConnectFuture.setSession (Showing top 1 results out of 315)

origin: org.littleshoot/mina-port

public void sessionOpened(NextFilter nextFilter, IoSession session)
    throws Exception {
  try {
    session.getHandler().sessionOpened(session);
  } finally {
    // Notify the related ConnectFuture
    // if the session is created from SocketConnector.
    ConnectFuture future = (ConnectFuture) session
        .removeAttribute(CONNECT_FUTURE);
    if (future != null) {
      future.setSession(session);
    }
  }
}
org.littleshoot.mina.commonConnectFuturesetSession

Javadoc

Sets the newly connected session and notifies all threads waiting for this future. This method is invoked by MINA internally. Please do not call this method directly.

Popular methods of ConnectFuture

  • join
  • getSession
    Returns IoSession which is the result of connect operation.
  • addListener
  • isConnected
    Returns true if the connect operation is finished successfully.
  • setException
    Sets the exception caught due to connection failure and notifies all threads waiting for this future

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Github Copilot alternatives
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