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) RandomAccessFileI/O Stream for disk packet queue.(package private) final intThe stream ID of the stream objects owning this state.(package private) intTotal of input packets in memory or disk.(package private) final LinkedListMemory resident packet queue.(package private) intNumber of packets cached to disk.(package private) FileFile object for disk packet queue. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVirtualSocket(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.
-