public class MyPoolSource
extends org.redkale.source.PoolTcpSource
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
CONN_ATTR_BYTES_NAME |
protected static String |
CONN_ATTR_CURR_DBNAME |
protected static String |
CONN_ATTR_PROTOCOL_VERSION |
protected static byte[] |
CURRDBNAME_BYTES |
protected static byte[] |
PING_BYTES |
| 构造器和说明 |
|---|
MyPoolSource(String rwtype,
ArrayBlockingQueue queue,
Semaphore semaphore,
Properties prop,
Logger logger,
org.redkale.util.ObjectPool<ByteBuffer> bufferPool,
ThreadPoolExecutor executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
getDefaultPort() |
protected ByteBuffer |
reqConnectBuffer(org.redkale.net.AsyncConnection conn) |
protected void |
respConnectBuffer(ByteBuffer buffer,
CompletableFuture<org.redkale.net.AsyncConnection> future,
org.redkale.net.AsyncConnection conn) |
protected CompletableFuture<org.redkale.net.AsyncConnection> |
sendCloseCommand(org.redkale.net.AsyncConnection conn) |
protected CompletableFuture<org.redkale.net.AsyncConnection> |
sendPingCommand(org.redkale.net.AsyncConnection conn) |
protected static final byte[] CURRDBNAME_BYTES
protected static final byte[] PING_BYTES
public MyPoolSource(String rwtype, ArrayBlockingQueue queue, Semaphore semaphore, Properties prop, Logger logger, org.redkale.util.ObjectPool<ByteBuffer> bufferPool, ThreadPoolExecutor executor)
protected ByteBuffer reqConnectBuffer(org.redkale.net.AsyncConnection conn)
reqConnectBuffer 在类中 org.redkale.source.PoolTcpSourceprotected void respConnectBuffer(ByteBuffer buffer, CompletableFuture<org.redkale.net.AsyncConnection> future, org.redkale.net.AsyncConnection conn)
respConnectBuffer 在类中 org.redkale.source.PoolTcpSourceprotected int getDefaultPort()
getDefaultPort 在类中 org.redkale.source.PoolSource<org.redkale.net.AsyncConnection>protected CompletableFuture<org.redkale.net.AsyncConnection> sendPingCommand(org.redkale.net.AsyncConnection conn)
sendPingCommand 在类中 org.redkale.source.PoolTcpSourceprotected CompletableFuture<org.redkale.net.AsyncConnection> sendCloseCommand(org.redkale.net.AsyncConnection conn)
sendCloseCommand 在类中 org.redkale.source.PoolTcpSourceCopyright © 2020. All rights reserved.