Class InternalDistributedSpaceTaskWrapper<T extends Serializable,R>
java.lang.Object
org.openspaces.core.executor.internal.InternalSpaceTaskWrapper<T>
org.openspaces.core.executor.internal.InternalDistributedSpaceTaskWrapper<T,R>
- All Implemented Interfaces:
AsyncResultFilter<T>,AsyncResultsReducer<T,,R> DistributedSpaceTask<T,,R> SpaceTask<T>,SpaceTaskWrapper,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
InternalDurableTaskWrapper
public class InternalDistributedSpaceTaskWrapper<T extends Serializable,R>
extends InternalSpaceTaskWrapper<T>
implements DistributedSpaceTask<T,R>, AsyncResultFilter<T>
An internal implementation of
DistributedSpaceTask that wraps the
actual Task to be executed.- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.async.AsyncResultFilter
AsyncResultFilter.Decision -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiononResult(AsyncResultFilterEvent<T> event) A callback invoked for each result that arrives as a result of a distributed task execution allowing to access the result that caused this event, the events received so far, and the total expected results.voidreduce(List<AsyncResult<T>> asyncResults) voidMethods inherited from class org.openspaces.core.executor.internal.InternalSpaceTaskWrapper
execute, getRouting, getSupportCodeChangeAnnotationContainer, getTask, getWrappedTask, setRoutingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
InternalDistributedSpaceTaskWrapper
public InternalDistributedSpaceTaskWrapper() -
InternalDistributedSpaceTaskWrapper
-
-
Method Details
-
reduce
- Specified by:
reducein interfaceAsyncResultsReducer<T extends Serializable,R> - Throws:
Exception
-
onResult
Description copied from interface:AsyncResultFilterA callback invoked for each result that arrives as a result of a distributed task execution allowing to access the result that caused this event, the events received so far, and the total expected results.- Specified by:
onResultin interfaceAsyncResultFilter<T extends Serializable>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classInternalSpaceTaskWrapper<T extends Serializable>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classInternalSpaceTaskWrapper<T extends Serializable>- Throws:
IOExceptionClassNotFoundException
-