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