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

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

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

origin: kaazing/gateway

@Override
protected void doSessionClosed(IoSessionEx session) throws Exception {
  WsnSession wsnSession = SESSION_KEY.remove(session);
  if (wsnSession != null && !wsnSession.isClosing()) {
    wsnSession.reset(new IOException(LoggingUtils.EARLY_TERMINATION_OF_IOSESSION_MESSAGE, wsnSession.getCloseException())
             .fillInStackTrace());
  }
}
origin: kaazing/gateway

@Override
protected void doSessionClosed(IoSessionEx session) throws Exception {
  WsnSession wsnSession = SESSION_KEY.remove(session);
  if (wsnSession != null && !wsnSession.isClosing()) {
    boolean isWsx = !wsnSession.getLocalAddress().getOption(CODEC_REQUIRED);
    if (isWsx) {
      wsnSession.getProcessor().remove(wsnSession);
    } else {
      wsnSession.reset(
          new IOException(LoggingUtils.NETWORK_CONNECTIVITY_ERROR_MESSAGE,
              wsnSession.getCloseException()).fillInStackTrace());
    }
  }
  IoFilterChain filterChain = session.getFilterChain();
  removeBridgeFilters(filterChain);
}
org.kaazing.gateway.transport.wsnWsnSessionreset

Popular methods of WsnSession

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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