net.sf.asyncobjects.util
Class CloseableWrapper.InvalidatingWhen<I,R>
java.lang.Object
net.sf.asyncobjects.When<I,R>
net.sf.asyncobjects.util.CloseableWrapper.InvalidatingWhen<I,R>
- Type Parameters:
I
- Input typeR
- Result type
- All Implemented Interfaces:
- ExplicitSharing
- Enclosing class:
- CloseableWrapper<FacetType extends ACloseable,WrappedType extends ACloseable>
protected abstract class CloseableWrapper.InvalidatingWhen<I,R>
- extends When<I,R>
When that invalidates the stream in case of exception
Method Summary |
protected Promise<? extends R> |
smashed(Throwable problem)
In addition to base class functionaity, the stream is marked as
invalid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseableWrapper.InvalidatingWhen
public CloseableWrapper.InvalidatingWhen(Promise<I> p)
- A constructor from superclass
- Parameters:
p
- a promise
smashed
protected final Promise<? extends R> smashed(Throwable problem)
throws Throwable
- In addition to base class functionaity, the stream is marked as
invalid.
- Overrides:
smashed
in class When<I,R>
- Parameters:
problem
- a problem that broken a promise.
- Returns:
- a value becomes curren result of promise
- Throws:
Throwable
- if there is a problem- See Also:
When.smashed(java.lang.Throwable)
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.