NIMSDK-AOS  9.15.0
MiscService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.misc;
2 
4 
5 import java.util.List;
6 
10 public interface MiscService {
11 
17 
25  InvocationFuture<Long> getSizeOfDirCache(List<DirCacheFileType> fileTypes, long startTime, long endTime);
26 
34  InvocationFuture<Void> clearDirCache(List<DirCacheFileType> fileTypes, long startTime, long endTime);
35 
42 
51  InvocationFuture<String> getSdkLogUpload(boolean cut, String roomId, String uploadMsg);
52 
53 }
InvocationFuture< Long > getServerTime()
获取服务器当前的时间戳。 频控限制详见 com.netease.nimlib.sdk.SDKOptions#fetchServerTimeInterval ...
InvocationFuture< Long > getSizeOfDirCache(List< DirCacheFileType > fileTypes, long startTime, long endTime)
获取指定时间范围内指定类型的文件在 SDK 缓存中的大小。
InvocationFuture< String > zipLogs()
将多个日志文件打包成一个 zip 压缩文件并返回其路径。
其他接口类,提供日志文件上传、SDK 本地缓存、获取云信服务端时间等接口。
InvocationFuture< String > getSdkLogUpload(boolean cut, String roomId, String uploadMsg)
主动上传 SDK 日志。
InvocationFuture< Void > clearDirCache(List< DirCacheFileType > fileTypes, long startTime, long endTime)
删除指定时间范围内指定类型的文件的 SDK 缓存。