org.wso2.carbon.identity.thrift.authentication.dao
Class InMemoryThriftSessionDAO

java.lang.Object
  extended by org.wso2.carbon.identity.thrift.authentication.dao.InMemoryThriftSessionDAO
All Implemented Interfaces:
ThriftSessionDAO

public class InMemoryThriftSessionDAO
extends Object
implements ThriftSessionDAO

Class to manipulate thrift session info in memory.


Constructor Summary
InMemoryThriftSessionDAO()
           
 
Method Summary
 void addSession(org.wso2.carbon.utils.ThriftSession session)
           
 List<org.wso2.carbon.utils.ThriftSession> getAllSessions()
           
 ThriftSessionDAO getInstance()
           
 org.wso2.carbon.utils.ThriftSession getSession(String sessionId)
           
 boolean isSessionExisting(String sessionId)
           
 void removeSession(String sessionId)
           
 void updateLastAccessTime(String sessionId, long lastAccessTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryThriftSessionDAO

public InMemoryThriftSessionDAO()
Method Detail

getAllSessions

public List<org.wso2.carbon.utils.ThriftSession> getAllSessions()
Specified by:
getAllSessions in interface ThriftSessionDAO

isSessionExisting

public boolean isSessionExisting(String sessionId)
Specified by:
isSessionExisting in interface ThriftSessionDAO

addSession

public void addSession(org.wso2.carbon.utils.ThriftSession session)
Specified by:
addSession in interface ThriftSessionDAO

removeSession

public void removeSession(String sessionId)
Specified by:
removeSession in interface ThriftSessionDAO

updateLastAccessTime

public void updateLastAccessTime(String sessionId,
                                 long lastAccessTime)
Specified by:
updateLastAccessTime in interface ThriftSessionDAO

getSession

public org.wso2.carbon.utils.ThriftSession getSession(String sessionId)
Specified by:
getSession in interface ThriftSessionDAO

getInstance

public ThriftSessionDAO getInstance()
Specified by:
getInstance in interface ThriftSessionDAO


Copyright © 2015 WSO2. All rights reserved.