games.strategy.net.nio
Class QuarantineConversation

java.lang.Object
  extended by games.strategy.net.nio.QuarantineConversation
Direct Known Subclasses:
ClientQuarantineConversation, ServerQuarantineConversation

public abstract class QuarantineConversation
extends java.lang.Object

When a connection is first made, it is quarantined until it logs in.

When quaratined, all messages sent by the node are sent to this quarntine conversation.

The quarantine conversation can only write to the node across the socket from it.

All messages sent to a conversation must be done in the Decode thread.

Author:
sgb

Nested Class Summary
static class QuarantineConversation.ACTION
           
 
Constructor Summary
QuarantineConversation()
           
 
Method Summary
abstract  void close()
          called if this conversation has been removed, either after a TERMINATE was returned from a message, or the channel has been closed.
abstract  QuarantineConversation.ACTION message(java.lang.Object o)
          A message has been read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuarantineConversation

public QuarantineConversation()
Method Detail

message

public abstract QuarantineConversation.ACTION message(java.lang.Object o)
A message has been read. What should we do?


close

public abstract void close()
called if this conversation has been removed, either after a TERMINATE was returned from a message, or the channel has been closed.