The run method of Runnable has return type void and cannot return a value. I wonder however if there is any workaround of this.
I have a method like this:
public class Endpoint {
    public method() {
       Runnable runcls = new RunnableClass();
       runcls.run()
    }
}
The method run is like this:
public class RunnableClass implements Runnable {
    
    public JaxbResponse response;
    public void run() {
        int id = inputProxy.input(chain);
        response = outputProxy.input();
    }
}
I want to have access to response variable in method. Is this possible?
 
     
     
     
     
     
     
     
     
     
     
    