创建新的在线集合,必须在App.Start流程中,紧接着默认Online的创建,马上创建其他的在线集合。 必须在Application.start()之前调用,以保证这里创建的Table能被open。 @param name 在线集合名字 @return 返回新建的在线集合实例。返回值可以保存下来。
(@NotNull AppBase app, @NotNull String name)
| 311 | * @return 返回新建的在线集合实例。返回值可以保存下来。 |
| 312 | */ |
| 313 | protected @NotNull Online createOnlineSet(@NotNull AppBase app, @NotNull String name) throws Exception { |
| 314 | if (name.isEmpty()) |
| 315 | throw new IllegalArgumentException("empty name"); |
| 316 | if (this != defaultInstance) |
| 317 | throw new IllegalStateException("must be called by default online"); |
| 318 | var online = new Online(app, name); |
| 319 | online.Initialize(app); |
| 320 | return online; |
| 321 | } |
| 322 | |
| 323 | public @NotNull ProviderWithOnline getProviderWithOnline() { |
| 324 | return (ProviderWithOnline)providerApp.providerImplement; |
no test coverage detected