Tabnine Logo
DefaultIdleStateEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultIdleStateEvent
in
org.jboss.netty.handler.timeout

Best Java code snippets using org.jboss.netty.handler.timeout.DefaultIdleStateEvent (Showing top 3 results out of 315)

origin: io.netty/netty

  @Override
  public String toString() {
    return getChannel().toString() + ' ' + getState() + " since " +
        DateFormat.getDateTimeInstance(
            DateFormat.SHORT, DateFormat.SHORT, Locale.US).format(
                new Date(getLastActivityTimeMillis()));
  }
}
origin: io.netty/netty

public ChannelFuture getFuture() {
  return succeededFuture(getChannel());
}
origin: io.netty/netty

protected void channelIdle(
    ChannelHandlerContext ctx, IdleState state, long lastActivityTimeMillis) throws Exception {
  ctx.sendUpstream(new DefaultIdleStateEvent(ctx.getChannel(), state, lastActivityTimeMillis));
}
org.jboss.netty.handler.timeoutDefaultIdleStateEvent

Javadoc

The default IdleStateEvent implementation.

Most used methods

  • <init>
    Creates a new instance.
  • getChannel
  • getLastActivityTimeMillis
  • getState

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
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