Class RemoteCloudServiceFactory
- java.lang.Object
-
- de.dytanic.cloudnet.driver.provider.service.DefaultCloudServiceFactory
-
- de.dytanic.cloudnet.driver.provider.service.RemoteCloudServiceFactory
-
- All Implemented Interfaces:
DriverAPIUser,CloudServiceFactory
public class RemoteCloudServiceFactory extends DefaultCloudServiceFactory implements CloudServiceFactory, DriverAPIUser
-
-
Constructor Summary
Constructors Constructor Description RemoteCloudServiceFactory(java.util.function.Supplier<INetworkChannel> channelSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ServiceInfoSnapshotcreateCloudService(ServiceConfiguration serviceConfiguration)Creates and prepares a new cloud service@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot>createCloudServiceAsync(ServiceConfiguration serviceConfiguration)Creates and prepares a new cloud serviceINetworkChannelgetNetworkChannel()-
Methods inherited from class de.dytanic.cloudnet.driver.provider.service.DefaultCloudServiceFactory
createCloudService, createCloudService, createCloudService, createCloudService, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.driver.provider.service.CloudServiceFactory
createCloudService, createCloudService, createCloudService, createCloudService, createCloudService, createCloudService, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync, createCloudServiceAsync
-
Methods inherited from interface de.dytanic.cloudnet.driver.api.DriverAPIUser
executeChunkedDriverAPIMethod, executeDriverAPIMethod, executeDriverAPIMethod, executeVoidDriverAPIMethod, executeVoidDriverAPIMethod
-
-
-
-
Constructor Detail
-
RemoteCloudServiceFactory
public RemoteCloudServiceFactory(java.util.function.Supplier<INetworkChannel> channelSupplier)
-
-
Method Detail
-
createCloudService
@Nullable public @Nullable ServiceInfoSnapshot createCloudService(ServiceConfiguration serviceConfiguration)
Description copied from interface:CloudServiceFactoryCreates and prepares a new cloud service- Specified by:
createCloudServicein interfaceCloudServiceFactory- Parameters:
serviceConfiguration- the configuration for the new service- Returns:
- the info of the created service or null if the service couldn't be created
-
createCloudServiceAsync
@NotNull public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot> createCloudServiceAsync(ServiceConfiguration serviceConfiguration)
Description copied from interface:CloudServiceFactoryCreates and prepares a new cloud service- Specified by:
createCloudServiceAsyncin interfaceCloudServiceFactory- Parameters:
serviceConfiguration- the configuration for the new service- Returns:
- the info of the created service or null if the service couldn't be created
-
getNetworkChannel
public INetworkChannel getNetworkChannel()
- Specified by:
getNetworkChannelin interfaceDriverAPIUser
-
-