net.sf.beep4j.internal
Class VerifyingCloseChannelCallback

java.lang.Object
  extended by net.sf.beep4j.internal.VerifyingCloseChannelCallback
All Implemented Interfaces:
CloseChannelCallback

public class VerifyingCloseChannelCallback
extends java.lang.Object
implements CloseChannelCallback


Constructor Summary
VerifyingCloseChannelCallback(CloseChannelCallback callback)
           
 
Method Summary
 void closeAccepted()
          Invoked by the framework if the channel close request has been accepted.
 void closeDeclined(int code, java.lang.String message)
          Invoked by the framework if the channel close request has been declined.
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyingCloseChannelCallback

public VerifyingCloseChannelCallback(CloseChannelCallback callback)
Method Detail

verify

public void verify()

closeAccepted

public void closeAccepted()
Description copied from interface: CloseChannelCallback
Invoked by the framework if the channel close request has been accepted. Beside this method, the framework also invokes the ChannelHandler#channelClosed(Channel) method.

Specified by:
closeAccepted in interface CloseChannelCallback

closeDeclined

public void closeDeclined(int code,
                          java.lang.String message)
Description copied from interface: CloseChannelCallback
Invoked by the framework if the channel close request has been declined. The code and message convey the reason why the request has been declined.

Specified by:
closeDeclined in interface CloseChannelCallback
Parameters:
code - the code, which is meaningful to a program
message - the message, which is meaningful to humans


Copyright © 2007 null. All Rights Reserved.