org.jetlang.fibers.NioBatchExecutorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jetlang Show documentation
Show all versions of jetlang Show documentation
Jetlang provides a high performance java threading library. It is a complement to the java.util.concurrent
package introduced in 1.5 and should be used for message based concurrency similar to event based actors in
Scala.
package org.jetlang.fibers;
import org.jetlang.core.BatchExecutorImpl;
import java.nio.channels.SelectionKey;
public class NioBatchExecutorImpl extends BatchExecutorImpl implements NioBatchExecutor {
public boolean runOnSelect(NioFiber fiber, NioChannelHandler handler, NioControls controls, SelectionKey key) {
return handler.onSelect(fiber, controls, key);
}
}