public class DelegatingGuacamoleTunnel extends Object implements GuacamoleTunnel
INTERNAL_DATA_OPCODE| Constructor and Description |
|---|
DelegatingGuacamoleTunnel(GuacamoleTunnel tunnel)
Wraps the given tunnel such that all function calls against this tunnel
will be delegated to it.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DelegatingGuacamoleTunnel(GuacamoleTunnel tunnel)
tunnel - The GuacamoleTunnel to wrap.public GuacamoleReader acquireReader()
GuacamoleTunnelacquireReader in interface GuacamoleTunnelpublic void releaseReader()
GuacamoleTunnelreleaseReader in interface GuacamoleTunnelpublic boolean hasQueuedReaderThreads()
GuacamoleTunnelhasQueuedReaderThreads in interface GuacamoleTunnelpublic GuacamoleWriter acquireWriter()
GuacamoleTunnelacquireWriter in interface GuacamoleTunnelpublic void releaseWriter()
GuacamoleTunnelreleaseWriter in interface GuacamoleTunnelpublic boolean hasQueuedWriterThreads()
GuacamoleTunnelhasQueuedWriterThreads in interface GuacamoleTunnelpublic UUID getUUID()
GuacamoleTunnelgetUUID in interface GuacamoleTunnelpublic GuacamoleSocket getSocket()
GuacamoleTunnelgetSocket in interface GuacamoleTunnelpublic void close()
throws GuacamoleException
GuacamoleTunnelclose in interface GuacamoleTunnelGuacamoleException - if an error occurs while releasing
resources.public boolean isOpen()
GuacamoleTunnelisOpen in interface GuacamoleTunnelCopyright © 2018. All rights reserved.