public class PrivilegedTask<T extends Serializable> extends SimpleDelegatingTask<T> implements Externalizable
| Constructor and Description |
|---|
PrivilegedTask()
Here for Externalizable.
|
PrivilegedTask(Task<T> task)
Constructs a new privileged task wrapping the actual task to execute.
|
| Modifier and Type | Method and Description |
|---|---|
T |
execute()
Executes the provided task under access controls.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
_readExternal, _writeExternal, getDelegatedTask, getRoutingpublic T execute() throws Exception
execute in interface Task<T extends Serializable>execute in class SimpleDelegatingTask<T extends Serializable>Exception - if unable to compute a resultpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © GigaSpaces.