Tabnine Logo
IoHandler.exceptionCaught
Code IndexAdd Tabnine to your IDE (free)

How to use
exceptionCaught
method
in
org.littleshoot.mina.common.IoHandler

Best Java code snippets using org.littleshoot.mina.common.IoHandler.exceptionCaught (Showing top 2 results out of 315)

origin: org.littleshoot/mina-util

@Override
public void exceptionCaught(final IoSession session, final Throwable cause)
  throws Exception
  {
  m_log.debug("Caught exception", cause);
  m_log.debug("Cause trace: "+ThreadUtils.dumpStack(cause.getCause()));
  this.m_ioHandler1.exceptionCaught(session, cause);
  this.m_ioHandler2.exceptionCaught(session, cause);
  }
origin: org.littleshoot/mina-port

public void exceptionCaught(NextFilter nextFilter, IoSession session,
    Throwable cause) throws Exception {
  session.getHandler().exceptionCaught(session, cause);
}
org.littleshoot.mina.commonIoHandlerexceptionCaught

Javadoc

Invoked when any exception is thrown by user IoHandlerimplementation or by MINA. If cause is instanceof IOException, MINA will close the connection automatically.

Popular methods of IoHandler

  • messageReceived
    Invoked when a message is received.
  • messageSent
    Invoked when a message written by IoSession#write(Object) is sent out.
  • sessionClosed
    Invoked when a connection is closed.
  • sessionCreated
    Invoked from an I/O processor thread when a new connection has been created. Because this method is
  • sessionIdle
    Invoked with the related IdleStatus when a connection becomes idle. This method is not invoked if th
  • sessionOpened
    Invoked when a connection has been opened. This method is invoked after #sessionCreated(IoSession).

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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