Package net.sourceforge.jtds.jdbc
Class SharedSocket.VirtualSocket
java.lang.Object
net.sourceforge.jtds.jdbc.SharedSocket.VirtualSocket
- Enclosing class:
SharedSocket
This inner class contains the state information for the virtual socket.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) RandomAccessFile
I/O Stream for disk packet queue.(package private) final int
The stream ID of the stream objects owning this state.(package private) int
Total of input packets in memory or disk.(package private) final LinkedList
Memory resident packet queue.(package private) int
Number of packets cached to disk.(package private) File
File object for disk packet queue. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
VirtualSocket
(int streamId) Construct object to hold state information for each caller. -
Method Summary
-
Field Details
-
id
final int idThe stream ID of the stream objects owning this state. -
pktQueue
Memory resident packet queue. -
queueFile
File queueFileFile object for disk packet queue. -
diskQueue
RandomAccessFile diskQueueI/O Stream for disk packet queue. -
pktsOnDisk
int pktsOnDiskNumber of packets cached to disk. -
inputPkts
int inputPktsTotal of input packets in memory or disk.
-
-
Constructor Details
-
VirtualSocket
private VirtualSocket(int streamId) Construct object to hold state information for each caller.- Parameters:
streamId
- the Response/Request stream id.
-