All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swiftboot.shiro.config.ShiroSessionConfigBean Maven / Gradle / Ivy

There is a newer version: 2.4.7
Show newest version
package org.swiftboot.shiro.config;

import org.swiftboot.shiro.constant.ShiroSessionStorageType;

/**
 * @author swiftech
 **/
public class ShiroSessionConfigBean {

    /**
     * 会话存储方式
     */
    private ShiroSessionStorageType storageType = ShiroSessionStorageType.memory;

    /**
     * 会话超时时间,单位秒,默认30分钟
     */
    private int timeout = 30 * 60;

    /**
     * Redis 分组名称,默认为 swiftboot-shiro-session
     */
    private String redisGroup = "swiftboot-shiro-session";

    public ShiroSessionStorageType getStorageType() {
        return storageType;
    }

    public void setStorageType(ShiroSessionStorageType storageType) {
        this.storageType = storageType;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getRedisGroup() {
        return redisGroup;
    }

    public void setRedisGroup(String redisGroup) {
        this.redisGroup = redisGroup;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy