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

How to use
getLastActivityTimeMillis
method
in
org.jboss.netty.handler.timeout.IdleStateEvent

Best Java code snippets using org.jboss.netty.handler.timeout.IdleStateEvent.getLastActivityTimeMillis (Showing top 1 results out of 315)

origin: normanmaurer/niosmtp

@Override
public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) throws Exception {
  if (e.getState() == IdleState.ALL_IDLE) {
    throw new SMTPIdleException("Connection was idling for " + (System.currentTimeMillis()- e.getLastActivityTimeMillis()) + " ms");
  }
  super.channelIdle(ctx, e);
}
org.jboss.netty.handler.timeoutIdleStateEventgetLastActivityTimeMillis

Javadoc

Returns the last time when I/O occurred in milliseconds.

Popular methods of IdleStateEvent

  • getState
    Returns the detailed idle state.
  • getChannel

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 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