Class ACMSessionIdResolver.SeamlessSession

  • All Implemented Interfaces:
    Enclosing class:

    public class ACMSessionIdResolver.SeamlessSession
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • 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
        iRemoteSessionId -
    • 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
      • 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
        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 interface java.lang.AutoCloseable