在……里面;在……期间内存Artifact服务(Service)
A thread-safe in-memory implementation of the ArtifactService.
User-scoped artifacts (see ArtifactService) live in a store of their own, keyed by app and user, so no session id can address them and none can be shadowed by a session that happens to share their name; listArtifactKeys merges the two scopes and returns them sorted. A null SessionKey.id is rejected for a session-scoped name, since there is no session to store it under; user-scoped names and listArtifactKeys accept one and address the user scope alone.
函数
Link copied to clipboard
删除一个工件(artifact)。
Link copied to clipboard
列出当前会话中可见的文件名:包括会话自身生成的文件以及用户创建的文件。 user: ones.
Link copied to clipboard
列出某个软件组件的所有版本(以修订版本号的形式表示)。
Link copied to clipboard
open suspend override fun loadArtifact(sessionKey: SessionKey, filename: String, version: Int? = null): Part?
获取一个工件(artifact)。
Link copied to clipboard
open suspend override fun saveAndReloadArtifact(sessionKey: SessionKey, filename: String, artifact: Part): Part
保存一个“artefact”(即某种数据或对象),并在文件数据(fileData)可用时将其一并返回。
Link copied to clipboard
open suspend override fun saveArtifact(sessionKey: SessionKey, filename: String, artifact: Part): Int
用于保存某个“文物”(即某个具有特殊价值或历史意义的物品)。