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

How to use
getCloseFuture
method
in
org.kaazing.gateway.transport.wsn.WsnSession

Best Java code snippets using org.kaazing.gateway.transport.wsn.WsnSession.getCloseFuture (Showing top 2 results out of 315)

origin: kaazing/gateway

  @Override
  public void operationComplete(WriteFuture future) {
    if (future.isWritten()) {
      // We both sent and received CLOSE frames: close
      // the session.
      if (logger != null &&
        logger.isTraceEnabled()) {
          logger.trace("received and sent CLOSE frames, closing session");
      }
      if (closeFuture != null &&
        closeFuture.isDone() == false) {
        closeFuture.cancel(true);
      }
      WsnSession wsnSession = SESSION_KEY.get(session);
      wsnSession.getCloseFuture().setClosed();
      wsnSession.getProcessor().remove(wsnSession);
    }
  }
});
origin: kaazing/gateway

CloseFuture closeFuture = wsnSession.getCloseFuture();
closeFuture.addListener(new IoFutureListener<CloseFuture>() {
  @Override
org.kaazing.gateway.transport.wsnWsnSessiongetCloseFuture

Popular methods of WsnSession

  • close
  • getParent
  • isBalanceSupported
  • getBalanceeURIs
  • getBufferAllocator
  • getCloseException
  • getFilterChain
  • getHandler
  • getLocalAddress
  • getParentHttpRequestURI
  • getProcessor
  • getVersion
  • getProcessor,
  • getVersion,
  • isClosing,
  • reset,
  • setBalanceeURIs,
  • setCloseException,
  • setLoginContext,
  • startupScheduledCommands

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Reference (javax.naming)
  • JTextField (javax.swing)
  • Best plugins for Eclipse
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