net.sf.beep4j.internal
Interface SessionManager

All Known Implementing Classes:
SessionImpl

public interface SessionManager

The SessionManager is used to start / close channels.

Author:
Simon Raess

Method Summary
 void channelCloseRequested(int channelNumber, CloseChannelRequest request)
          Requests to close the channel identified by the given channel number.
 StartChannelResponse channelStartRequested(int channelNumber, ProfileInfo[] profiles)
          Requests to start a new channel or cancels the request.
 void sessionCloseRequested(CloseCallback callback)
          Closes the session.
 

Method Detail

channelStartRequested

StartChannelResponse channelStartRequested(int channelNumber,
                                           ProfileInfo[] profiles)
Requests to start a new channel or cancels the request.

Parameters:
channelNumber - the channel number
profiles - the list of acceptable profiles
Returns:
the response from the application

channelCloseRequested

void channelCloseRequested(int channelNumber,
                           CloseChannelRequest request)
Requests to close the channel identified by the given channel number. The request can either be accepted (resulting in a close channel) or declined (in which case the channel stays open).

Parameters:
channelNumber - the channel number
request - the close request

sessionCloseRequested

void sessionCloseRequested(CloseCallback callback)
Closes the session.

Parameters:
callback - the callback that gets notified about the outcome


Copyright © 2007 null. All Rights Reserved.