me.chanjar.weixin.common.session

## 接口 InternalSession

所有已知实现类:
  StandardSession

    public interface InternalSession

### 方法概要

方法
`void` `access()` Update the accessed time information for this session.
`void` `endAccess()` End the access.
`void` `expire()` Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired.
`String` `getIdInternal()` Return the session identifier for this session.
`WxSession` `getSession()` Return the `HttpSession` for which this object is the facade.
`boolean` `isValid()` Return the `isValid` flag for this session.
`void` `setCreationTime(long time)` Set the creation time for this session.
`void` `setId(String id)` Set the session identifier for this session.
`void` `setMaxInactiveInterval(int interval)` Set the default maximum inactive interval (in seconds) for Sessions created by this Manager.
`void` `setValid(boolean isValid)` Set the `isValid` flag for this session.

### 方法详细资料

#### getSession

    WxSession getSession()

Return the `HttpSession` for which this object is the facade.

#### isValid

    boolean isValid()

Return the `isValid` flag for this session.

#### setValid

    void setValid(boolean isValid)

Set the `isValid` flag for this session.

参数:
  `isValid` - The new value for the `isValid` flag

#### getIdInternal

    String getIdInternal()

Return the session identifier for this session.

#### expire

    void expire()

Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired.

#### access

    void access()

Update the accessed time information for this session. This method should be called by the context when a request comes in for a particular session, even if the application does not reference it.

#### endAccess

    void endAccess()

End the access.

#### setCreationTime

    void setCreationTime(long time)

Set the creation time for this session. This method is called by the Manager when an existing Session instance is reused.

参数:
  `time` - The new creation time

#### setMaxInactiveInterval

    void setMaxInactiveInterval(int interval)

Set the default maximum inactive interval (in seconds) for Sessions created by this Manager.

参数:
  `interval` - The new default value

#### setId

    void setId(String id)

Set the session identifier for this session.

参数:
  `id` - The new session identifier