|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.guacamole.net.GuacamoleTunnel
public class GuacamoleTunnel
Provides a unique identifier and synchronized access to the GuacamoleReader and GuacamoleWriter associated with a GuacamoleSocket.
| Constructor Summary | |
|---|---|
GuacamoleTunnel(GuacamoleSocket socket)
Creates a new GuacamoleTunnel which synchronizes access to the Guacamole instruction stream associated with the given GuacamoleSocket. |
|
| Method Summary | |
|---|---|
GuacamoleReader |
acquireReader()
Acquires exclusive read access to the Guacamole instruction stream and returns a GuacamoleReader for reading from that stream. |
GuacamoleWriter |
acquireWriter()
Acquires exclusive write access to the Guacamole instruction stream and returns a GuacamoleWriter for writing to that stream. |
void |
close()
Release all resources allocated to this GuacamoleTunnel. |
GuacamoleSocket |
getSocket()
Returns the GuacamoleSocket used by this GuacamoleTunnel for reading and writing. |
UUID |
getUUID()
Returns the unique identifier associated with this GuacamoleTunnel. |
boolean |
hasQueuedReaderThreads()
Returns whether there are threads waiting for read access to the Guacamole instruction stream. |
boolean |
hasQueuedWriterThreads()
Returns whether there are threads waiting for write access to the Guacamole instruction stream. |
boolean |
isOpen()
Returns whether this GuacamoleTunnel is open, or has been closed. |
void |
releaseReader()
Relinquishes exclusive read access to the Guacamole instruction stream. |
void |
releaseWriter()
Relinquishes exclusive write access to the Guacamole instruction stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuacamoleTunnel(GuacamoleSocket socket)
socket - The GuacamoleSocket to provide synchronized access for.| Method Detail |
|---|
public GuacamoleReader acquireReader()
public void releaseReader()
public boolean hasQueuedReaderThreads()
public GuacamoleWriter acquireWriter()
public void releaseWriter()
public boolean hasQueuedWriterThreads()
public UUID getUUID()
public GuacamoleSocket getSocket()
public void close()
throws GuacamoleException
GuacamoleException - if an error occurs while releasing
resources.public boolean isOpen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||