Package org.jppf.nio

Class AcceptChannelTask

java.lang.Object
org.jppf.nio.AcceptChannelTask
All Implemented Interfaces:
Runnable

public class AcceptChannelTask extends Object implements Runnable
This task performs the processing of a newly accepted channel.
  • Constructor Details

    • AcceptChannelTask

      public AcceptChannelTask(NioServer server, ServerSocketChannel serverSocketChannel, SocketChannel channel, boolean ssl)
      Initialize this task with the specified selection key.
      Parameters:
      serverSocketChannel - the server socketc channel that accepted the connection.
      server - the related nio server.
      channel - the newly accepted socket channel.
      ssl - determines whether ssl is enabled for the channel.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable