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

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

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

origin: kaazing/gateway

@Override
protected void doExceptionCaught(IoSessionEx session, Throwable cause) throws Exception {
  if (logger.isDebugEnabled()) {
    String message = format("Error on WebSocket connection, closing connection: %s", cause);
    if (logger.isTraceEnabled()) {
      // note: still debug level, but with extra detail about the exception
      logger.debug(message, cause);
    } else {
      logger.debug(message);
    }
  }
  WsnSession wsnSession = SESSION_KEY.get(session);
  if (wsnSession != null) {
    wsnSession.setCloseException(cause);
  }
  session.close(true);
}
origin: kaazing/gateway

@Override
protected void doExceptionCaught(IoSessionEx session, Throwable cause) throws Exception {
  if (logger.isDebugEnabled()) {
    String message = format("Error on WebSocket connection: %s", cause);
    if (logger.isTraceEnabled()) {
      // note: still debug level, but with extra detail about the exception
      logger.debug(message, cause);
    }
    else {
      logger.debug(message);
    }
  }
  WsnSession wsnSession = SESSION_KEY.get(session);
  if (wsnSession != null) {
    wsnSession.setCloseException(cause);
  }
  session.close(true);
  ConnectFuture wsnConnectFuture = WSN_CONNECT_FUTURE_KEY.remove(session);
  if (wsnConnectFuture != null) {
    wsnConnectFuture.setException(cause);
  }
}
org.kaazing.gateway.transport.wsnWsnSessionsetCloseException

Popular methods of WsnSession

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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