Class ConversationImpl

    • Constructor Detail

      • ConversationImpl

        @Inject
        public ConversationImpl​(BeanManagerImpl manager)
    • Method Detail

      • begin

        public void begin()
        Specified by:
        begin in interface jakarta.enterprise.context.Conversation
      • begin

        public void begin​(String id)
        Specified by:
        begin in interface jakarta.enterprise.context.Conversation
      • end

        public void end()
        Specified by:
        end in interface jakarta.enterprise.context.Conversation
      • getId

        public String getId()
        Specified by:
        getId in interface jakarta.enterprise.context.Conversation
      • getTimeout

        public long getTimeout()
        Specified by:
        getTimeout in interface jakarta.enterprise.context.Conversation
      • setTimeout

        public void setTimeout​(long timeout)
        Specified by:
        setTimeout in interface jakarta.enterprise.context.Conversation
      • isTransient

        public boolean isTransient()
        Specified by:
        isTransient in interface jakarta.enterprise.context.Conversation
      • getLastUsed

        public long getLastUsed()
        Description copied from interface: ManagedConversation
        Gets the last time the conversation was used (for data access)
        Specified by:
        getLastUsed in interface ManagedConversation
        Returns:
        time (in ms) since the conversation was last used
      • lock

        public boolean lock​(long timeout)
        Description copied from interface: ManagedConversation
        Attempts to lock the conversation for exclusive usage
        Specified by:
        lock in interface ManagedConversation
        Parameters:
        timeout - The time in milliseconds to wait on the lock
        Returns:
        True if lock was successful, false otherwise
      • unlock

        public boolean unlock()
        Description copied from interface: ManagedConversation
        Attempts to unlock the conversation
        Specified by:
        unlock in interface ManagedConversation
        Returns:
        true if the unlock was successful, false otherwise
      • isContextActive

        public boolean isContextActive()