package mineplex.chestConverter; import mineplex.core.common.util.Callback; public class AsyncJsonWebCall extends JsonWebCall { public AsyncJsonWebCall(String url) { super(url); } public void Execute() { Thread asyncThread = new Thread(new Runnable() { public void run() { AsyncJsonWebCall.super.Execute(); } }); asyncThread.start(); } public void Execute(final Object argument) { Thread asyncThread = new Thread(new Runnable() { public void run() { AsyncJsonWebCall.super.Execute(argument); } }); asyncThread.start(); } public void Execute(final Class callbackClass, final Callback callback) { Thread asyncThread = new Thread(new Runnable() { public void run() { AsyncJsonWebCall.super.Execute(callbackClass, callback); } }); asyncThread.start(); } public void Execute(final Class callbackClass, final Callback callback, final Object argument) { Thread asyncThread = new Thread(new Runnable() { public void run() { AsyncJsonWebCall.super.Execute(callbackClass, callback, argument); } }); asyncThread.start(); } }