public class PgSocketConnection extends SocketConnectionBase
SocketConnectionBase.StatusConnection.Holder| Modifier and Type | Field and Description |
|---|---|
PgDatabaseMetadata |
dbMetaData |
int |
processId |
int |
secretKey |
logger, psCache, socket, status| Constructor and Description |
|---|
PgSocketConnection(NetSocketInternal socket,
boolean cachePreparedStatements,
int preparedStatementCacheSize,
Predicate<String> preparedStatementCacheSqlFilter,
int pipeliningLimit,
EventLoopContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected <R> void |
doSchedule(CommandBase<R> cmd,
Handler<AsyncResult<R>> handler) |
DatabaseMetadata |
getDatabaseMetaData() |
int |
getProcessId() |
int |
getSecretKey() |
protected void |
handleMessage(Object msg) |
void |
init() |
boolean |
isIndeterminatePreparedStatementError(Throwable error) |
close, context, handleClose, handleEvent, init, isSsl, schedule, socketpublic int processId
public int secretKey
public PgDatabaseMetadata dbMetaData
public PgSocketConnection(NetSocketInternal socket, boolean cachePreparedStatements, int preparedStatementCacheSize, Predicate<String> preparedStatementCacheSqlFilter, int pipeliningLimit, EventLoopContext context)
public void init()
init in class SocketConnectionBaseprotected void handleMessage(Object msg)
handleMessage in class SocketConnectionBasepublic int getProcessId()
getProcessId in interface ConnectiongetProcessId in class SocketConnectionBasepublic int getSecretKey()
getSecretKey in interface ConnectiongetSecretKey in class SocketConnectionBasepublic DatabaseMetadata getDatabaseMetaData()
protected <R> void doSchedule(CommandBase<R> cmd, Handler<AsyncResult<R>> handler)
doSchedule in class SocketConnectionBasepublic boolean isIndeterminatePreparedStatementError(Throwable error)
true when error is an indeterminate data type reported when preparing a statementCopyright © 2021. All rights reserved.