public abstract class SocketConnectionBase extends Object implements Connection
| Modifier and Type | Class and Description |
|---|---|
static class |
SocketConnectionBase.Status |
Connection.Holder| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger |
protected PreparedStatementCache |
psCache |
protected NetSocketInternal |
socket |
protected SocketConnectionBase.Status |
status |
| Constructor and Description |
|---|
SocketConnectionBase(NetSocketInternal socket,
boolean cachePreparedStatements,
int preparedStatementCacheSize,
Predicate<String> preparedStatementCacheSqlFilter,
int pipeliningLimit,
EventLoopContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Connection.Holder holder,
Promise<Void> promise) |
Context |
context() |
protected <R> void |
doSchedule(CommandBase<R> cmd,
Handler<AsyncResult<R>> handler) |
int |
getProcessId() |
int |
getSecretKey() |
protected void |
handleClose(Throwable t) |
protected void |
handleEvent(Object event) |
protected void |
handleMessage(Object msg) |
void |
init() |
void |
init(Connection.Holder holder) |
boolean |
isSsl() |
<R> void |
schedule(CommandBase<R> cmd,
Promise<R> promise) |
NetSocketInternal |
socket() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatabaseMetaData, isIndeterminatePreparedStatementErrorprotected static final Logger logger
protected final PreparedStatementCache psCache
protected final NetSocketInternal socket
protected SocketConnectionBase.Status status
public SocketConnectionBase(NetSocketInternal socket, boolean cachePreparedStatements, int preparedStatementCacheSize, Predicate<String> preparedStatementCacheSqlFilter, int pipeliningLimit, EventLoopContext context)
public Context context()
public void init()
public NetSocketInternal socket()
public boolean isSsl()
isSsl in interface Connectionpublic void init(Connection.Holder holder)
init in interface Connectionpublic int getProcessId()
getProcessId in interface Connectionpublic int getSecretKey()
getSecretKey in interface Connectionpublic void close(Connection.Holder holder, Promise<Void> promise)
close in interface Connectionpublic <R> void schedule(CommandBase<R> cmd, Promise<R> promise)
schedule in interface CommandSchedulerprotected <R> void doSchedule(CommandBase<R> cmd, Handler<AsyncResult<R>> handler)
protected void handleMessage(Object msg)
protected void handleEvent(Object event)
protected void handleClose(Throwable t)
Copyright © 2021. All rights reserved.