org.jdiameter.common.api.app.slg.ISLgSessionFactory Maven / Gradle / Ivy
/*
*
* TeleStax, Open Source Cloud Communications
* Copyright 2011-2017, Telestax Inc and individual contributors
* by the @authors tag.
*
* This program is free software: you can redistribute it and/or modify
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
*
*/
package org.jdiameter.common.api.app.slg;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.slg.ClientSLgSessionListener;
import org.jdiameter.api.slg.ServerSLgSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
// import org.jdiameter.common.api.app.slg.ISLgMessageFactory;
/**
* @author Fernando Mendioroz
*/
@SuppressWarnings("all") //3rd party lib
public interface ISLgSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has similar effect as setting this directly in app
* session. However clustered session use this value when recreated!
*
* @return the serverSessionListener
*/
ServerSLgSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect as setting this directly in app
* session. However clustered session use this value when recreated!
*
* @param serverSessionListener the serverSessionListener to set
*/
void setServerSessionListener(ServerSLgSessionListener serverSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar effect as setting this directly in app
* session. However clustered session use this value when recreated!
*
* @return the clientSessionListener
*/
ClientSLgSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect as setting this directly in app
* session. However clustered session use this value when recreated!
*
* @param clientSessionListener the clientSessionListener to set
*/
void setClientSessionListener(ClientSLgSessionListener clientSessionListener);
/**
* @return the messageFactory
*/
ISLgMessageFactory getMessageFactory();
/**
* @param messageFactory the messageFactory to set
*/
void setMessageFactory(ISLgMessageFactory messageFactory);
/**
* @return the stateListener
*/
StateChangeListener getStateListener();
/**
* @param stateListener the stateListener to set
*/
void setStateListener(StateChangeListener stateListener);
}