GigaSpaces XAP 9.7.2 API

org.openspaces.core.executor
Interface Task<T extends Serializable>

All Superinterfaces:
Serializable
All Known Subinterfaces:
DelegatingTask<T>, DistributedTask<T,R>
All Known Implementing Classes:
AbstractDelegatingDistributedTask, AvgTask, CallableDistributedTaskAdapter, CallableTaskAdapter, ExecutorRemotingTask, MaxTask, MinTask, PrivilegedDistributedTask, PrivilegedTask, RegisterDistributedEventContainerTask, RegisterEventContainerTask, RunnableDistributedTaskAdapter, RunnableTaskAdapter, SimpleDelegatingDistributedTask, SimpleDelegatingTask, SumTask, UnregisterDistributedEventContainerTask, UnregisterEventContainerTask

public interface Task<T extends Serializable>
extends Serializable

A task executed on a space node (processing unit) that returns a result and may throw an exception. Implementors define a single method with no arguments called execute.

Author:
kimchy

Method Summary
 T execute()
          Computes a result, or throws an exception if unable to do so.
 

Method Detail

execute

T execute()
                               throws Exception
Computes a result, or throws an exception if unable to do so.

Returns:
computed result
Throws:
Exception - if unable to compute a result

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.