org.openspaces.core.executor.internal
Class InternalSpaceTaskWrapper<T extends Serializable>
java.lang.Object
org.openspaces.core.executor.internal.InternalSpaceTaskWrapper<T>
- All Implemented Interfaces:
- com.gigaspaces.executor.SpaceTask<T>, com.gigaspaces.executor.SpaceTaskWrapper, Externalizable, Serializable
- Direct Known Subclasses:
- InternalDistributedSpaceTaskWrapper
public class InternalSpaceTaskWrapper<T extends Serializable>
- extends Object
- implements com.gigaspaces.executor.SpaceTask<T>, com.gigaspaces.executor.SpaceTaskWrapper, Externalizable
An internal implemenation of SpaceTask
that wraps the actual Task
to be executed.
- Author:
- kimchy
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalSpaceTaskWrapper
public InternalSpaceTaskWrapper()
InternalSpaceTaskWrapper
public InternalSpaceTaskWrapper(Task<T> task,
Object routing)
execute
public T execute(com.j_spaces.core.IJSpace space,
net.jini.core.transaction.Transaction tx)
throws Exception
- Specified by:
execute
in interface com.gigaspaces.executor.SpaceTask<T extends Serializable>
- Throws:
Exception
getWrappedTask
public Object getWrappedTask()
- Specified by:
getWrappedTask
in interface com.gigaspaces.executor.SpaceTaskWrapper
getTask
public Task<T> getTask()
getRouting
public Object getRouting()
setRouting
public void setRouting(Object routing)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © GigaSpaces.