public class ThreadedSPARQL extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) ExecutorService |
executor |
private org.slf4j.Logger |
log |
private SPARQL |
sparql |
private int |
timeoutInSeconds |
| Constructor and Description |
|---|
ThreadedSPARQL() |
ThreadedSPARQL(int timeoutInSeconds,
String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
getTimeoutInSeconds() |
static void |
main(String[] args) |
void |
setTimeoutInSeconds(int timeoutInSeconds) |
Set<org.apache.jena.rdf.model.RDFNode> |
sparql(String query) |
private SPARQL sparql
private int timeoutInSeconds
private org.slf4j.Logger log
ExecutorService executor
public ThreadedSPARQL()
public ThreadedSPARQL(int timeoutInSeconds,
String endpoint)
public Set<org.apache.jena.rdf.model.RDFNode> sparql(String query) throws ExecutionException
ExecutionExceptionpublic int getTimeoutInSeconds()
public void setTimeoutInSeconds(int timeoutInSeconds)
public void destroy()
public static void main(String[] args) throws InterruptedException, ExecutionException
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.