public class ServerCallManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerCallManager.RunningServerCall
Running server task model
|
| Constructor and Description |
|---|
ServerCallManager() |
@Deprecated public ManagedChannelBuilder<?> newChannelBuilderWithoutEncryption(@NonNull @NonNull String host, int port)
newChannelBuilderWithEncryption(String, int)
newChannelBuilderWithEncryption(String, int, X509Certificate)ChannelBuilder.withTLSEncryption(java.lang.String, int) using executorhost - the server hostport - the server portManagedChannelBuilderpublic ManagedChannelBuilder<?> newChannelBuilderWithEncryption(@NonNull @NonNull String host, int port)
ChannelBuilder.withTLSEncryption(java.lang.String, int) using executorhost - the server hostport - the server portManagedChannelBuilderpublic ManagedChannelBuilder<?> newChannelBuilderWithEncryption(@NonNull @NonNull String host, int port, X509Certificate certificate)
ChannelBuilder.withTLSEncryption(java.lang.String, int) using executorhost - the server hostport - the server portcertificate - the server certificateManagedChannelBuilderpublic Optional<ServerCallManager.RunningServerCall> getCall(@NonNull @NonNull UUID callUuid)
callUuid - the task UUIDpublic Collection<ServerCallManager.RunningServerCall> getCalls()
public Future<String> runAsync(@NonNull @NonNull ExecutableServerCall executableServerCall, boolean notifyGlobalListener, @Nullable CallListener callRelativeListener)
executableServerCall - the executable tasknotifyGlobalListener - option to notify listeners globallycallRelativeListener - the task listenerpublic Future<String> runAsync(@NonNull @NonNull ExecutableServerCall executableServerCall, @Nullable CallListener callRelativeListener)
executableServerCall - the executable taskcallRelativeListener - the task listenerpublic Future<String> runAsync(@NonNull @NonNull ExecutableServerCall executableServerCall)
executableServerCall - the executable taskpublic Runnable addListener(@NonNull @NonNull CallListener callListener)
callListener - the listener to addpublic void removeListener(@NonNull @NonNull CallListener callListener)
callListener - the listener to removeCopyright © 2022 SiLA Java Developers. All rights reserved.