Interface Worker

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractNioWorker, AbstractOioWorker, NioDatagramWorker, NioWorker, OioDatagramWorker, OioWorker

public interface Worker extends Runnable
A Worker is responsible to dispatch IO operations
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute the given Runnable in the IO-Thread.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • executeInIoThread

      void executeInIoThread(Runnable task)
      Execute the given Runnable in the IO-Thread. This may be now or later once the IO-Thread do some other work.
      Parameters:
      task - the Runnable to execute