public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeSingleQuota(String origin) |
static ClassLoader |
getClassLoader() |
static io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
static ForkJoinPool |
getForkJoinPool() |
static String |
getNativeSql(String rawSql,
Object[] parameters) |
static int |
getSqlRows(Connection connection,
String sql) |
static void |
initEventLoopGroup() |
static boolean |
isValidIP(String ip) |
static <T> T |
newInstance(Class<T> c)
Instantiate the class
|
static Class<?> |
parseClassType(String key) |
static void |
releaseByteBuf(io.netty.buffer.ByteBuf byteBuf) |
static void |
retainByteBuf(io.netty.buffer.ByteBuf byteBuf) |
public static ClassLoader getClassLoader()
public static <T> T newInstance(Class<T> c)
public static boolean isValidIP(String ip)
public static ForkJoinPool getForkJoinPool()
public static int getSqlRows(Connection connection, String sql) throws SQLException
SQLExceptionpublic static void initEventLoopGroup()
public static io.netty.channel.EventLoopGroup getEventLoopGroup()
public static void releaseByteBuf(io.netty.buffer.ByteBuf byteBuf)
public static void retainByteBuf(io.netty.buffer.ByteBuf byteBuf)
Copyright © 2025. All rights reserved.