net.sf.asyncobjects
Class When.InternalBodyPromiseResolver

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<AResolver<R>>
      extended by net.sf.asyncobjects.When.InternalBodyPromiseResolver
All Implemented Interfaces:
AResolver<R>, AsyncObject, ExplicitSharing
Enclosing class:
When<I,R>

public final class When.InternalBodyPromiseResolver
extends AsyncUnicastServer<AResolver<R>>
implements AResolver<R>

This is an internal class. It waits unitl promise returned from body is resolved and if it is smashed it continues with bodySmashed() method.


Method Summary
 void resolve(R value)
          Resolve method
 void smash(Throwable problem)
          Smash method
 
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer
dereference, export, isImmediate, myVat, promise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

resolve

public final void resolve(R value)
Resolve method

Specified by:
resolve in interface AResolver<R>
Parameters:
value - a value it is resolved whith
See Also:
AResolver.resolve(Object)

smash

public final void smash(Throwable problem)
Smash method

Specified by:
smash in interface AResolver<R>
Parameters:
problem - a problem it is smashed with
See Also:
AResolver.smash(Throwable)


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.