net.sf.asyncobjects
Class When.InternalBodyPromiseResolver
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<AResolver<R>>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.