net.sf.beep4j
Interface CloseChannelCallback

All Known Implementing Classes:
VerifyingCloseChannelCallback

public interface CloseChannelCallback

Callback interface for channel close operation. When a BEEP peer wants to close a channel it sends a close channel request to the other peer. The other peer can either accept the request or decline it. A declined request has the effect that the channel is still alive. There is no way to close a channel for sure.

Author:
Simon Raess

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.
 

Method Detail

closeAccepted

void closeAccepted()
Invoked by the framework if the channel close request has been accepted. Beside this method, the framework also invokes the ChannelHandler#channelClosed(Channel) method.


closeDeclined

void closeDeclined(int code,
                   java.lang.String message)
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.

Parameters:
code - the code, which is meaningful to a program
message - the message, which is meaningful to humans


Copyright © 2007 null. All Rights Reserved.