GigaSpaces - Open Spaces

org.openspaces.core.executor.internal
Class InternalSpaceTaskWrapper<T extends Serializable>

java.lang.Object
  extended by 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

Constructor Summary
InternalSpaceTaskWrapper()
           
InternalSpaceTaskWrapper(Task<T> task, Object routing)
           
 
Method Summary
 T execute(com.j_spaces.core.IJSpace space, net.jini.core.transaction.Transaction tx)
           
 Object getRouting()
           
 Task<T> getTask()
           
 Object getWrappedTask()
           
 void readExternal(ObjectInput in)
           
 void setRouting(Object routing)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalSpaceTaskWrapper

public InternalSpaceTaskWrapper()

InternalSpaceTaskWrapper

public InternalSpaceTaskWrapper(Task<T> task,
                                Object routing)
Method Detail

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

GigaSpaces - Open Spaces

Copyright © GigaSpaces.