Class ResourceManagerUtils.InternalRuntimeContext
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils.InternalRuntimeContext
- Enclosing class:
- ResourceManagerUtils
The class provides the common methods required for SDK framework.
RESERVED FOR INTERNAL USE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.provider.IdentifierProviderCreates a resource namerstatic DurationgetDelayDuration(Duration delay) Wrapper for the duration for delay, based on delayProvider.static SchedulerGets the current Rx Scheduler for the SDK framework.randomResourceName(String prefix, int maxLen) Gets a random name.Gets a random UUID.static voidsetDelayProvider(com.azure.core.management.provider.DelayProvider delayProvider) Function to override the DelayProvider.voidsetIdentifierFunction(Function<String, com.azure.core.management.provider.IdentifierProvider> identifierFunction) Sets the resource namerstatic voidsetReactorScheduler(Scheduler reactorScheduler) Sets the Rx Scheduler for SDK framework, by default is Scheduler.io().
-
Constructor Details
-
InternalRuntimeContext
public InternalRuntimeContext()
-
-
Method Details
-
setIdentifierFunction
public void setIdentifierFunction(Function<String, com.azure.core.management.provider.IdentifierProvider> identifierFunction) Sets the resource namer- Parameters:
identifierFunction- the function.
-
createIdentifierProvider
Creates a resource namer- Parameters:
name- the name value.- Returns:
- the new resource namer
-
randomResourceName
Gets a random name.- Parameters:
prefix- the prefix to be used if possiblemaxLen- the maximum length for the random generated name- Returns:
- the random name
-
randomUuid
Gets a random UUID.- Returns:
- the random UUID.
-
setDelayProvider
public static void setDelayProvider(com.azure.core.management.provider.DelayProvider delayProvider) Function to override the DelayProvider.- Parameters:
delayProvider- delayProvider to override.
-
getDelayDuration
Wrapper for the duration for delay, based on delayProvider.- Parameters:
delay- the duration of proposed delay.- Returns:
- the duration of delay.
-
getReactorScheduler
Gets the current Rx Scheduler for the SDK framework.- Returns:
- current rx scheduler.
-
setReactorScheduler
Sets the Rx Scheduler for SDK framework, by default is Scheduler.io().- Parameters:
reactorScheduler- current Rx Scheduler to be used in SDK framework.
-