games.strategy.net.nio
Class NIOWriter

java.lang.Object
  extended by games.strategy.net.nio.NIOWriter

public class NIOWriter
extends java.lang.Object

A thread that writes socket data using NIO .
Data is written in packets that are enqued on our buffer. Packets are sent to the sockets in the order that they are received.

Author:
sgb

Constructor Summary
NIOWriter(IErrorReporter reporter, java.lang.String threadSuffix)
           
 
Method Summary
 void closed(java.nio.channels.SocketChannel channel)
          Remove the data for this channel
 void enque(SocketWriteData data, java.nio.channels.SocketChannel channel)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NIOWriter

public NIOWriter(IErrorReporter reporter,
                 java.lang.String threadSuffix)
Method Detail

shutDown

public void shutDown()

closed

public void closed(java.nio.channels.SocketChannel channel)
Remove the data for this channel


enque

public void enque(SocketWriteData data,
                  java.nio.channels.SocketChannel channel)