net.vattp.data
Class Suspend

java.lang.Object
  |
  +--net.vattp.data.Suspend
All Implemented Interfaces:
MsgHandler

class Suspend
extends Object
implements MsgHandler

Class to handle the suspension and shutdown messages.

Author:
Bill Frantz

Constructor Summary
(package private) Suspend(VatTPConnection connection)
          Constuct an object to handle the SUSPEND message (which also acts as the shutdown message).
 
Method Summary
 void connectionDead(VatTPConnection connection, Throwable reason)
          Handle a dead connection.
 void processMessage(byte[] message, VatTPConnection connection)
          Handle incoming Suspend messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Suspend

Suspend(VatTPConnection connection)
Constuct an object to handle the SUSPEND message (which also acts as the shutdown message).

Parameters:
connection - is the VatTPConnection to work with.
Method Detail

connectionDead

public void connectionDead(VatTPConnection connection,
                           Throwable reason)
Handle a dead connection.

Specified by:
connectionDead in interface MsgHandler
Parameters:
connection - is the VatTPConnection which died.
reason - is a Throwable which describes why the connection died.

processMessage

public void processMessage(byte[] message,
                           VatTPConnection connection)
Handle incoming Suspend messages

Specified by:
processMessage in interface MsgHandler
Parameters:
message - is the incoming message.
connection - is the VatTPConnection which died.
See Also:
Msg, VatTPConnection


comments?