Interface IgniteSandbox
-
- All Known Implementing Classes:
AccessControllerSandbox,NoOpSandbox
public interface IgniteSandboxIgniteSandbox executes a user-defined code with restrictions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanenabled()<T> Texecute(Callable<T> call)Executescallablewith constraints defined by currentSecuritySubject.
-
-
-
Method Detail
-
execute
<T> T execute(Callable<T> call) throws IgniteException
Executescallablewith constraints defined by currentSecuritySubject.- Parameters:
call- Callable to execute.- Returns:
- Result of
callable. - Throws:
IgniteException- See Also:
IgniteSecurity.withContext(UUID),IgniteSecurity.withContext(SecurityContext),SecuritySubject.sandboxPermissions()
-
enabled
boolean enabled()
- Returns:
- True if the sandbox is enabled.
-
-