LoginRequestTask
Overview
This class is an inheritor of RequestTask and is returned as a result of RemoteDataAdapter calls. It has a getLogged method that provides a task result.
Check base class for additional customization options.
Location
- Reference: com.remobjects.dataabstract.jar
- Package: com.remobjects.dataabstract
- Ancestry: Object | RequestTask<TResult,TCallback> | LoginRequestTask
constructor (Callable<Boolean>, Callback) protected
constructor(aCallable: Callable<Boolean>; aCallback: Callback)
LoginRequestTask(Callable<Boolean> aCallable, Callback aCallback)
Parameters:
- aCallable:
- aCallback:
constructor (Callable<Boolean>, Callback) protected (declared in RequestTask<TResult,TCallback>)
constructor(aCallable: Callable<Boolean>; aCallback: Callback)
LoginRequestTask(Callable<Boolean> aCallable, Callback aCallback)
Parameters:
- aCallable:
- aCallback:
constructor (Runnable, Boolean, Callback) protected
constructor(aRunnable: Runnable; aResult: Boolean; aCallback: Callback)
LoginRequestTask(Runnable aRunnable, Boolean aResult, Callback aCallback)
Parameters:
- aRunnable:
- aResult:
- aCallback:
constructor (Runnable, Boolean, Callback) protected (declared in RequestTask<TResult,TCallback>)
constructor(aRunnable: Runnable; aResult: Boolean; aCallback: Callback)
LoginRequestTask(Runnable aRunnable, Boolean aResult, Callback aCallback)
Parameters:
- aRunnable:
- aResult:
- aCallback:
CallbackExecutor (declared in RequestTask<TResult,TCallback>)
property CallbackExecutor: Executor read write;
Executor CallbackExecutor { __get; __set; }
cancel (declared in RequestTask<TResult,TCallback>)
Attempts to cancel execution of this task. This attempt will fail if the task has already completed, already been cancelled, or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task should be interrupted in an attempt to stop the task.
method cancel(mayInterruptIfRunning: Boolean): Boolean
Boolean cancel(Boolean mayInterruptIfRunning)
Parameters:
- mayInterruptIfRunning: TRUE if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete
execute (declared in RequestTask<TResult,TCallback>)
Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation.
method execute: RequestTask<TResult, TCallback>
RequestTask<TResult, TCallback> execute()
Executor (declared in RequestTask<TResult,TCallback>)
property Executor: Executor read write;
Executor Executor { __get; __set; }
FailureCause (declared in RequestTask<TResult,TCallback>)
property FailureCause: Throwable read write;
Throwable FailureCause { __get; __set; }
get (declared in RequestTask<TResult,TCallback>)
Waits if necessary for the computation to complete, and then retrieves its result.
method get: Boolean
Boolean get()
get (Long, TimeUnit): Boolean (declared in RequestTask<TResult,TCallback>)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
method get(aTimeout: Long; aUnit: TimeUnit): Boolean
Boolean get(Long aTimeout, TimeUnit aUnit)
Parameters:
- aTimeout: the maximum time to wait
- aUnit: the time unit of the timeout argument
isCancelled (declared in RequestTask<TResult,TCallback>)
Returns TRUE if this task was cancelled before it completed normally.
method isCancelled: Boolean
Boolean isCancelled()
isFailed (declared in RequestTask<TResult,TCallback>)
Returns TRUE if an exception was thrown during task execution. Call getFailureCause to get the exception.
method isFailed: Boolean
Boolean isFailed()
Logged
property Logged: Boolean read;
Boolean Logged { __get; }
onFutureDone protected (declared in RequestTask<TResult,TCallback>)
method onFutureDone
void onFutureDone()
setCallback protected (declared in RequestTask<TResult,TCallback>)
Sets the callback to invoke on task completion. NULL is possible.
method setCallback(aCallback: Callback)
void setCallback(Callback aCallback)
Parameters:
- aCallback: the callback instance to invoke.
State (declared in RequestTask<TResult,TCallback>)
property State: Object read write;
Object State { __get; __set; }
Status (declared in RequestTask<TResult,TCallback>)
property Status: Status read;
Status Status { __get; }
CallbackExecutor (declared in RequestTask<TResult,TCallback>)
property CallbackExecutor: Executor read write;
Executor CallbackExecutor { __get; __set; }
Executor (declared in RequestTask<TResult,TCallback>)
property Executor: Executor read write;
Executor Executor { __get; __set; }
FailureCause (declared in RequestTask<TResult,TCallback>)
property FailureCause: Throwable read write;
Throwable FailureCause { __get; __set; }
Logged
property Logged: Boolean read;
Boolean Logged { __get; }
State (declared in RequestTask<TResult,TCallback>)
property State: Object read write;
Object State { __get; __set; }
Status (declared in RequestTask<TResult,TCallback>)
property Status: Status read;
Status Status { __get; }
constructor (Callable<Boolean>, Callback) protected
constructor(aCallable: Callable<Boolean>; aCallback: Callback)
LoginRequestTask(Callable<Boolean> aCallable, Callback aCallback)
Parameters:
- aCallable:
- aCallback:
constructor (Callable<Boolean>, Callback) protected (declared in RequestTask<TResult,TCallback>)
constructor(aCallable: Callable<Boolean>; aCallback: Callback)
LoginRequestTask(Callable<Boolean> aCallable, Callback aCallback)
Parameters:
- aCallable:
- aCallback:
constructor (Runnable, Boolean, Callback) protected
constructor(aRunnable: Runnable; aResult: Boolean; aCallback: Callback)
LoginRequestTask(Runnable aRunnable, Boolean aResult, Callback aCallback)
Parameters:
- aRunnable:
- aResult:
- aCallback:
constructor (Runnable, Boolean, Callback) protected (declared in RequestTask<TResult,TCallback>)
constructor(aRunnable: Runnable; aResult: Boolean; aCallback: Callback)
LoginRequestTask(Runnable aRunnable, Boolean aResult, Callback aCallback)
Parameters:
- aRunnable:
- aResult:
- aCallback:
cancel (declared in RequestTask<TResult,TCallback>)
Attempts to cancel execution of this task. This attempt will fail if the task has already completed, already been cancelled, or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task should be interrupted in an attempt to stop the task.
method cancel(mayInterruptIfRunning: Boolean): Boolean
Boolean cancel(Boolean mayInterruptIfRunning)
Parameters:
- mayInterruptIfRunning: TRUE if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete
execute (declared in RequestTask<TResult,TCallback>)
Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation.
method execute: RequestTask<TResult, TCallback>
RequestTask<TResult, TCallback> execute()
get (declared in RequestTask<TResult,TCallback>)
Waits if necessary for the computation to complete, and then retrieves its result.
method get: Boolean
Boolean get()
get (Long, TimeUnit): Boolean (declared in RequestTask<TResult,TCallback>)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
method get(aTimeout: Long; aUnit: TimeUnit): Boolean
Boolean get(Long aTimeout, TimeUnit aUnit)
Parameters:
- aTimeout: the maximum time to wait
- aUnit: the time unit of the timeout argument
isCancelled (declared in RequestTask<TResult,TCallback>)
Returns TRUE if this task was cancelled before it completed normally.
method isCancelled: Boolean
Boolean isCancelled()
isFailed (declared in RequestTask<TResult,TCallback>)
Returns TRUE if an exception was thrown during task execution. Call getFailureCause to get the exception.
method isFailed: Boolean
Boolean isFailed()
onFutureDone protected (declared in RequestTask<TResult,TCallback>)
method onFutureDone
void onFutureDone()
setCallback protected (declared in RequestTask<TResult,TCallback>)
Sets the callback to invoke on task completion. NULL is possible.
method setCallback(aCallback: Callback)
void setCallback(Callback aCallback)
Parameters:
- aCallback: the callback instance to invoke.