com.gateway.connector.SessionManager Maven / Gradle / Ivy
package com.gateway.connector;
import java.util.Set;
public interface SessionManager {
/**
* session
*
* @param session
*/
void addSession(Session session);
void updateSession(String sessionId);
/**
* session
*
* @param session
*/
void removeSession(Session session);
/**
* session
*
* @param sessionId
*/
void removeSession(String sessionId);
/**
* sessionIdsession
*
* @param sessionId
* @return
*/
Session getSession(String sessionId);
/**
* session
*
* @return
*/
Session[] getSessions();
/**
* sessionid
*
* @return
*/
Set getSessionKeys();
/**
* session
*
* @return
*/
int getSessionCount();
/**
* Return the default maximum inactive interval (in seconds)
* for Sessions created by this Manager.
*/
int getMaxInactiveInterval();
/**
* Set the default maximum inactive interval (in seconds)
* for Sessions created by this Manager.
*
* @param interval The new default value
*/
void setMaxInactiveInterval(int interval);
}