Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.ssh
Class SSHPduQueue  view SSHPduQueue download SSHPduQueue.java

java.lang.Object
  extended bymindbright.ssh.SSHPduQueue

public final class SSHPduQueue
extends java.lang.Object


Field Summary
(package private)  boolean isWaitGet
           
(package private)  boolean isWaitPut
           
(package private)  int maxQueueDepth
           
(package private)  java.lang.Object[] queue
           
(package private)  java.lang.Object queueLock
           
(package private)  int rOffset
           
(package private) static int SSH_QUEUE_DEPTH
           
(package private) static int SSH_QUEUE_HIWATER
           
(package private)  int wOffset
           
 
Constructor Summary
SSHPduQueue()
           
 
Method Summary
private  int freeSpace()
           
 SSHPdu getFirst()
           
 boolean isEmpty()
           
 void putFirst(SSHPdu pdu)
           
private  void putFlowControl()
           
 void putLast(SSHPdu pdu)
           
 void release()
           
 void setMaxDepth(int maxDepth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_QUEUE_DEPTH

static final int SSH_QUEUE_DEPTH
See Also:
Constant Field Values

SSH_QUEUE_HIWATER

static final int SSH_QUEUE_HIWATER
See Also:
Constant Field Values

queue

java.lang.Object[] queue

queueLock

java.lang.Object queueLock

isWaitGet

boolean isWaitGet

isWaitPut

boolean isWaitPut

rOffset

int rOffset

wOffset

int wOffset

maxQueueDepth

int maxQueueDepth
Constructor Detail

SSHPduQueue

public SSHPduQueue()
Method Detail

setMaxDepth

public void setMaxDepth(int maxDepth)

putLast

public void putLast(SSHPdu pdu)

putFirst

public void putFirst(SSHPdu pdu)

release

public void release()

isEmpty

public boolean isEmpty()

putFlowControl

private final void putFlowControl()

freeSpace

private final int freeSpace()

getFirst

public SSHPdu getFirst()