Class TcpServerThread
java.lang.Object
org.h2.server.TcpServerThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAn input stream with a position. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SmallMapprivate intprivate Commandprivate longprivate final SmallLRUCache<Long, TcpServerThread.CachedInputStream> private final TcpServerprivate SessionLocalprivate Stringprivate booleanprivate Threadprivate final intprotected final Transfer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcancelStatement(String targetSessionId, int statementId) Cancel a running statement.(package private) voidclose()Close a connection.private voidprivate intgetState(int oldModificationId) (package private) Threadprivate voidprocess()voidrun()private voidprivate voidsendRows(ResultInterface result, long count) private voidsetParameters(Command command) (package private) voidprivate void
-
Field Details
-
transfer
-
server
-
session
-
stop
private boolean stop -
thread
-
commit
-
cache
-
lobs
-
threadId
private final int threadId -
clientVersion
private int clientVersion -
sessionId
-
lastRemoteSettingsId
private long lastRemoteSettingsId
-
-
Constructor Details
-
TcpServerThread
-
-
Method Details
-
trace
-
run
-
closeSession
private void closeSession() -
close
void close()Close a connection. -
sendError
-
setParameters
- Throws:
IOException
-
process
- Throws:
IOException
-
getState
private int getState(int oldModificationId) -
sendRows
- Throws:
IOException
-
setThread
-
getThread
Thread getThread() -
cancelStatement
Cancel a running statement.- Parameters:
targetSessionId- the session idstatementId- the statement to cancel
-