Code example for Callable

Methods: call

0
    public void execute() throws BuildException { 
        if (null == getCallable()) { 
            throw new BuildException("CallableWrapperTask requires a Callable object"); 
        } 
        try { 
            resultObject = getCallable().call();
        } catch (Exception e) {
            throw new BuildException(e);
        } 
    } 
 
    public Callable getCallable() {
        return callable;
    } 
 
    public void setCallable(final Callable callable) {
        this.callable = callable;
    } 
 
    public Object getResultObject() {
Contextual code suggestions in your IDE  Get Codota for Java