DelayProvider Class
- java.
lang. Object - com.
microsoft. azure. management. resources. fluentcore. utils. DelayProvider
- com.
public class DelayProvider
A wrapper class for thread sleep.
Constructor Summary
Constructor | Description | |
---|---|---|
DelayProvider() |
Method Summary
Modifier and Type | Method and Description |
---|---|
rx.Observable<T> |
delayedEmitAsync(T event, int milliseconds)
Creates an observable that emits the given item after the specified time in milliseconds. |
org.joda.time.DateTime | now() |
void |
sleep(int milliseconds)
Puts current thread on sleep for passed milliseconds. |
Methods inherited from java.lang.Object
Constructor Details
DelayProvider
public DelayProvider()
Method Details
delayedEmitAsync
public Observable
Creates an observable that emits the given item after the specified time in milliseconds.
Parameters:
Returns:
now
public DateTime now()
Returns:
sleep
public void sleep(int milliseconds)
Puts current thread on sleep for passed milliseconds.
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for