package cdac.medinfo.sdk.hl7282.hl7net.upperlayer;

/**
 * ISubscriptionListener needs to be implemented and registered with ServerSession in 
 * order to receive subscription messages sent by client/subscriber/listener. 
 */
public interface ISubscriptionListener 
{
	/**
	 * Invoked when subscription message is received from remote system.
	 * @param objClientSession - instance of ClientSession.
	 */
	public void onSubscriptionMessageReceive(ClientSession objClientSession);
	
	/**
	 * Invoked when cancel subscription message is received from remote system.
	 * @param objClientSession - instance of ClientSession.
	 */
	public void onSubscriptionCancel(ClientSession objClientSession);
}
