Package com.microstrategy.webapi
Class ACMSessionIdResolver.SeamlessSession
- java.lang.Object
-
- com.microstrategy.webapi.ACMSessionIdResolver.SeamlessSession
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- ACMSessionIdResolver
public class ACMSessionIdResolver.SeamlessSession extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description SeamlessSession(IDSSXMLSessionId iRemoteSessionId)
The constructor should be called in a try-with-resources block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close is called by try-with-resources.IDSSXMLSessionId.IMasterSessionId
getMasterSessionId()
getMasterSessionId is used to get the cache.void
setMasterSessionId(IDSSXMLSessionId.IMasterSessionId iLocalMasterSessionId)
setMasterSessionId is used to set the acknowledge success in getting a new session and will set up the cache
-
-
-
Constructor Detail
-
SeamlessSession
public SeamlessSession(IDSSXMLSessionId iRemoteSessionId) throws MSTRWebAPIException
The constructor should be called in a try-with-resources block. This initial construction will determine if the caller must create a new session or not. If not, the caller may use the cache. The cache is gotten from getMasterSessionId- Parameters:
iRemoteSessionId
-- Throws:
MSTRWebAPIException
-
-
Method Detail
-
getMasterSessionId
public IDSSXMLSessionId.IMasterSessionId getMasterSessionId()
getMasterSessionId is used to get the cache. If the cache exists, then the caller should use it. If the cache does not exist, this method will return null. The caller then should create the new cache and then call setMasterSessionId- Returns:
-
setMasterSessionId
public void setMasterSessionId(IDSSXMLSessionId.IMasterSessionId iLocalMasterSessionId)
setMasterSessionId is used to set the acknowledge success in getting a new session and will set up the cache- Parameters:
iLocalMasterSessionId
-
-
close
public void close()
close is called by try-with-resources. This happens after the caller has created the new session (successfully, or failed), or used the cache.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-