Class Oauth2.RefreshTokenRequest
- Enclosing class:
Oauth2
-
Nested Class Summary
Nested classes/interfaces inherited from class AsyncResource
AsyncResource.AsyncExecutionException, AsyncResource.CancellationExceptionModifier and TypeClassDescriptionstatic classException to wrap exceptions that are thrown during asynchronous execution.static classException thrown when the AsyncResource is cancelled. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AsyncResource
addListener, all, all, asPromise, await, await, await, cancel, complete, error, except, except, get, get, get, isCancelled, isCancelled, isDone, isReady, onResult, ready, ready, waitForModifier and TypeMethodDescriptionvoidaddListener(AsyncResource<AccessToken> resource) Adds another AsyncResource as a listener to this async resource.static AsyncResource<Boolean> all(AsyncResource<?>... resources) Creates a single AsyncResource that will fire its ready() only when all of the provided resources are ready.static AsyncResource<Boolean> all(Collection<AsyncResource<?>> resources) Creates a single AsyncResource that will fire its ready() only when all of the provided resources are ready.Wraps this AsyncResource object as aPromisevoidawait()Waits and blocks until this AsyncResource is done.static voidawait(AsyncResource<?>... resources) Waits for a set of AsyncResources to be complete.static voidawait(Collection<AsyncResource<?>> resources) Waits for a set of AsyncResources to be complete.booleancancel(boolean mayInterruptIfRunning) Cancels loading the resource.voidcomplete(AccessToken value) Sets the resource value.voidSets the error for this resource in the case that it could not be loaded.except(SuccessCallback<Throwable> callback) Sets callback to run if an error occurs.except(SuccessCallback<Throwable> callback, EasyThread t) Sets callback to run if an error occurs.get()Gets the resource synchronously.get(int timeout) Gets the resource synchronously.get(AccessToken defaultVal) Gets the resource if it is ready.booleanChecks if the resource loading was cancelled.static booleanReturns true if the provided throwable was caused by a cancellation of an AsyncResource.booleanisDone()Checks if the resource loading is done.booleanisReady()Checks if the resource is ready.voidonResult(AsyncResult<AccessToken> onResult) Combines ready() and except() into a single callback with 2 parameters.ready(SuccessCallback<AccessToken> callback) Runs the provided callback when the resource is ready.ready(SuccessCallback<AccessToken> callback, EasyThread t) Runs the provided callback when the resource is ready.voidwaitFor()Wait for loading to complete.Methods inherited from class Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedModifier and TypeMethodDescriptionvoidaddObserver(Observer observer) Adds the specified observer to the list of observers.protected voidClears the changed flag for thisObservable.intReturns the number of observers registered to thisObservable.voiddeleteObserver(Observer observer) Removes the specified observer from the list of observers.voidRemoves all observers from the list of observers.booleanReturns the changed flag for thisObservable.voidIfhasChanged()returnstrue, calls theupdate()method for every observer in the list of observers using null as the argument.voidnotifyObservers(Object data) IfhasChanged()returnstrue, calls theupdate()method for every Observer in the list of observers using the specified argument.protected voidSets the changed flag for thisObservable.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
RefreshTokenRequest
public RefreshTokenRequest()
-