Public Member Functions | Protected Member Functions | Properties

GridGain.Client.Util.GridClientFuture Class Reference

Future base implementation. More...

Inherits GridGain::Client::IGridClientFuture.

Inherited by GridGain.Client.Impl.GridClientTcpRequestFuture, and GridGain.Client.Util.GridClientFuture< T >.

List of all members.

Public Member Functions

void WaitDone ()
 Synchronously waits for completion.
bool WaitDone (TimeSpan timeout)
 Synchronously waits for task completion.
abstract void Done (Object res)
 Callback to notify that future is finished successfully.
void Fail (Action err)
 Callback to notify that future is finished with error. Note! Pass in new exception instance to preserve exception stack trace.

Protected Member Functions

void Done (Action updateCallback)
 Update future state on complete.

Properties

Action DoneCallback [get, set]
 Callback delegate to call on future finishes.
bool IsDone [get]
 Checks if future is done.

Detailed Description


Member Function Documentation

void GridGain.Client.Util.GridClientFuture.Done ( Action  updateCallback  )  [protected]
Parameters:
updateCallback Update delegate to set future result in thread-safe environment.
abstract void GridGain.Client.Util.GridClientFuture.Done ( Object  res  )  [pure virtual]
Parameters:
res Result (can be null).
void GridGain.Client.Util.GridClientFuture.Fail ( Action  err  ) 
Parameters:
err Error (can't be null).
void GridGain.Client.Util.GridClientFuture.WaitDone (  ) 
Exceptions:
GridClientException If task execution fails with exception.

Implements GridGain.Client.IGridClientFuture.

bool GridGain.Client.Util.GridClientFuture.WaitDone ( TimeSpan  timeout  ) 
Parameters:
timeout Timeout interval to wait future completes.
Returns:
true if this future completes, false - otherwize.
Exceptions:
GridClientException If task execution fails with exception.

Property Documentation

Action GridGain.Client.Util.GridClientFuture.DoneCallback [get, set]
bool GridGain.Client.Util.GridClientFuture.IsDone [get]
Returns:
Whether future is done.

Implements GridGain.Client.IGridClientFuture.