/** * Update event loops resources and return the global HTTP resources * * @return the global HTTP resources */ public static HttpResources set(ConnectionProvider provider) { return getOrCreate(httpResources, null, provider, ON_HTTP_NEW, "http"); }
/** * Update pooling resources and return the global HTTP resources * * @return the global HTTP resources */ public static HttpResources set(LoopResources loops) { return getOrCreate(httpResources, loops, null, ON_HTTP_NEW, "http"); }
/** * Return the global HTTP resources for event loops and pooling * * @return the global HTTP resources for event loops and pooling */ public static HttpResources get() { return getOrCreate(httpResources, null, null, ON_HTTP_NEW, "http"); }
/** * Update pooling resources and return the global HTTP resources * * @return the global HTTP resources */ public static HttpResources set(LoopResources loops) { return getOrCreate(httpResources, loops, null, ON_HTTP_NEW, "http"); }
/** * Return the global HTTP resources for event loops and pooling * * @return the global HTTP resources for event loops and pooling */ public static HttpResources get() { return getOrCreate(httpResources, null, null, ON_HTTP_NEW, "http"); }
/** * Update event loops resources and return the global HTTP resources * * @return the global HTTP resources */ public static HttpResources set(ConnectionProvider provider) { return getOrCreate(httpResources, null, provider, ON_HTTP_NEW, "http"); }
/** * Reset http resources to default and return its instance * * @return the global HTTP resources */ public static HttpResources reset() { disposeLoopsAndConnections(); return getOrCreate(httpResources, null, null, ON_HTTP_NEW, "http"); }
/** * Reset http resources to default and return its instance * * @return the global HTTP resources */ public static HttpResources reset() { disposeLoopsAndConnections(); return getOrCreate(httpResources, null, null, ON_HTTP_NEW, "http"); }