ResourceManagerUtils.InternalRuntimeContext Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluentcore. utils. ResourceManagerUtils. InternalRuntimeContext
- com.
public static class ResourceManagerUtils.InternalRuntimeContext
The class provides the common methods required for SDK framework. RESERVED FOR INTERNAL USE.
Constructor Summary
Constructor | Description | |
---|---|---|
InternalRuntimeContext() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Identifier |
createIdentifierProvider(String name)
Creates a resource namer |
static Duration |
getDelayDuration(Duration delay)
Wrapper for the duration for delay, based on delay |
static Scheduler |
getReactorScheduler()
Gets the current Rx Scheduler for the SDK framework. |
String |
randomResourceName(String prefix, int maxLen)
Gets a random name. |
String |
randomUuid()
Gets a random UUID. |
static void |
setDelayProvider(DelayProvider delayProvider)
Function to override the Delay |
void |
setIdentifierFunction(Function<String,IdentifierProvider> identifierFunction)
Sets the resource namer |
static void |
setReactorScheduler(Scheduler reactorScheduler)
Sets the Rx Scheduler for SDK framework, by default is Scheduler. |
Methods inherited from java.lang.Object
Constructor Details
InternalRuntimeContext
public InternalRuntimeContext()
Method Details
createIdentifierProvider
public IdentifierProvider createIdentifierProvider(String name)
Creates a resource namer
Parameters:
Returns:
getDelayDuration
public static Duration getDelayDuration(Duration delay)
Wrapper for the duration for delay, based on delayProvider.
Parameters:
Returns:
getReactorScheduler
public static Scheduler getReactorScheduler()
Gets the current Rx Scheduler for the SDK framework.
Returns:
randomResourceName
public String randomResourceName(String prefix, int maxLen)
Gets a random name.
Parameters:
Returns:
randomUuid
public String randomUuid()
Gets a random UUID.
Returns:
setDelayProvider
public static void setDelayProvider(DelayProvider delayProvider)
Function to override the DelayProvider.
Parameters:
setIdentifierFunction
public void setIdentifierFunction(Function
Sets the resource namer
Parameters:
setReactorScheduler
public static void setReactorScheduler(Scheduler reactorScheduler)
Sets the Rx Scheduler for SDK framework, by default is Scheduler.io().
Parameters:
Applies to
Azure SDK for Java