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

How to use
executeInIoThread
method
in
org.jboss.netty.channel.socket.nio.NioWorker

Best Java code snippets using org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread (Showing top 5 results out of 315)

origin: kaazing/gateway

private static boolean isInIoThread(NioWorker worker) {
  final Thread[] ioThread = new Thread[]{null};
  worker.executeInIoThread(new Runnable() {
    @Override
    public void run() {
      ioThread[0] = currentThread();
    }
  });
  boolean aligned = ioThread[0] == currentThread();
  assert aligned : format("Current thread %s does not match I/O thread %s", currentThread(), ioThread[0]);
  return aligned;
}
origin: org.vert-x/vertx-core

public void runOnCorrectThread(NioSocketChannel nch, Runnable runnable) {
 nch.getWorker().executeInIoThread(runnable, false);
}
origin: org.vert-x/vertx-core

public void execute(Runnable task) {
 worker.executeInIoThread(wrapTask(task), true);
}
origin: com.facebook.nifty/nifty-client

@Override
public void executeInIoThread(Runnable runnable)
{
  NioSocketChannel nioSocketChannel = (NioSocketChannel) getNettyChannel();
  nioSocketChannel.getWorker().executeInIoThread(runnable, true);
}
origin: k3po/k3po

  @Override
  public void operationComplete(ChannelFuture future) throws Exception {
    ((NioSocketChannel) ctx.getChannel()).getWorker().executeInIoThread(() -> {
      try {
        prepareReceived(ctx, evt);
      } catch (Exception e) {
        sendErrorMessage(ctx, e);
      }
    }, true);
  }
});
org.jboss.netty.channel.socket.nioNioWorkerexecuteInIoThread

Popular methods of NioWorker

  • register
  • close
  • registerTask
  • <init>
  • cleanUpWriteBuffer
  • clearOpWrite
  • scheduleWriteIfNecessary
  • setOpWrite
  • shutdown
  • write0
  • write0Udp
  • writeFromUserCodeUdp
  • write0Udp,
  • writeFromUserCodeUdp

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • Menu (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • 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
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text 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