Package com.mckoi.database.jdbcserver
Class SingleThreadedConnectionPoolServer.ServerConnectionState
- java.lang.Object
-
- com.mckoi.database.jdbcserver.SingleThreadedConnectionPoolServer.ServerConnectionState
-
- Enclosing class:
- SingleThreadedConnectionPoolServer
private final class SingleThreadedConnectionPoolServer.ServerConnectionState extends java.lang.Object
This contains state information about a ServerConnection that is being maintained by the server.
-
-
Field Summary
Fields Modifier and Type Field Description private ServerConnection
connection
The local variables.private boolean
is_pending_command
private boolean
is_ping_client
private boolean
is_processing_request
-
Constructor Summary
Constructors Constructor Description ServerConnectionState(ServerConnection connection)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearInternal()
Clears the internal state.void
clearProcessingRequest()
Clears the flag that says we are processing a request.ServerConnection
getConnection()
Queries the internal state.boolean
hasPendingCommand()
boolean
isPingClient()
boolean
isProcessingRequest()
void
setPendingCommand()
void
setPingClient()
void
setProcessingRequest()
Sets the various states to true.
-
-
-
Field Detail
-
connection
private ServerConnection connection
The local variables.
-
is_processing_request
private boolean is_processing_request
-
is_pending_command
private boolean is_pending_command
-
is_ping_client
private boolean is_ping_client
-
-
Constructor Detail
-
ServerConnectionState
ServerConnectionState(ServerConnection connection)
The Constructor.
-
-
Method Detail
-
setProcessingRequest
public void setProcessingRequest()
Sets the various states to true.
-
setPendingCommand
public void setPendingCommand()
-
setPingClient
public void setPingClient()
-
clearInternal
public void clearInternal()
Clears the internal state.
-
clearProcessingRequest
public void clearProcessingRequest()
Clears the flag that says we are processing a request.
-
getConnection
public ServerConnection getConnection()
Queries the internal state.
-
isProcessingRequest
public boolean isProcessingRequest()
-
hasPendingCommand
public boolean hasPendingCommand()
-
isPingClient
public boolean isPingClient()
-
-