net.sf.asyncobjects
Class When.InternalResultPromiseResolver
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<AResolver<R>>
net.sf.asyncobjects.When.InternalResultPromiseResolver
- All Implemented Interfaces:
- AResolver<R>, AsyncObject, ExplicitSharing
- Enclosing class:
- When<I,R>
public final class When.InternalResultPromiseResolver
- extends AsyncUnicastServer<AResolver<R>>
- implements AResolver<R>
This is internal class. This listener listen for promises retruned from
resolved() and smashed() methods.
Method Summary |
void |
resolve(R value)
This is a callback method which is called when promise is resolved. |
void |
smash(Throwable problem)
Smash method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolve
public void resolve(R value)
- This is a callback method which is called when promise is resolved.
It should not be called by clients of when.
- Specified by:
resolve
in interface AResolver<R>
- Parameters:
value
- a value it is resolved whith- See Also:
AResolver.resolve(Object)
smash
public 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.