net.sf.asyncobjects
Class Promise.InternalPromiseResolverImpl

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<AResolver<T>>
      extended by net.sf.asyncobjects.Promise.InternalPromiseResolverImpl
All Implemented Interfaces:
AResolver<T>, AsyncObject, ExplicitSharing
Enclosing class:
Promise<T>

public final class Promise.InternalPromiseResolverImpl
extends AsyncUnicastServer<AResolver<T>>
implements AResolver<T>

This is an internal class. Implementation of resolver for promise


Method Summary
 void resolve(T o)
          resolve promise
 void smash(Throwable ex)
          break promise with exception
 
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

smash

public void smash(Throwable ex)
break promise with exception

Specified by:
smash in interface AResolver<T>
Parameters:
ex - exeption that represent problem

resolve

public void resolve(T o)
resolve promise

Specified by:
resolve in interface AResolver<T>
Parameters:
o - value to resolve to


Copyright 2002-2007 Constantine Plotnikov. All Rights Reserved.