public class SandboxExecutingService extends Object
A secure executing service run template in a separate thread in case there are infinite loop, and also set the SecurityManager in the executing thread
| Constructor and Description |
|---|
SandboxExecutingService(int poolSize,
SandboxThreadFactory fact,
long timeout,
RythmEngine re,
String code) |
| Modifier and Type | Method and Description |
|---|---|
String |
execute(Map<String,Object> context,
File template,
Object... args) |
String |
execute(Map<String,Object> context,
String template,
Object... args) |
Future<Object> |
executeAsync(ITemplate t) |
protected void |
finalize() |
void |
shutdown() |
public SandboxExecutingService(int poolSize,
SandboxThreadFactory fact,
long timeout,
RythmEngine re,
String code)
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.