public abstract class AbstractGuacamoleTunnel extends Object implements GuacamoleTunnel
INTERNAL_DATA_OPCODE| Constructor and Description |
|---|
AbstractGuacamoleTunnel()
Creates a new GuacamoleTunnel which synchronizes access to the
Guacamole instruction stream associated with the underlying
GuacamoleSocket.
|
| 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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSocket, getUUIDpublic AbstractGuacamoleTunnel()
public GuacamoleReader acquireReader()
acquireReader in interface GuacamoleTunnelpublic void releaseReader()
releaseReader in interface GuacamoleTunnelpublic boolean hasQueuedReaderThreads()
hasQueuedReaderThreads in interface GuacamoleTunnelpublic GuacamoleWriter acquireWriter()
acquireWriter in interface GuacamoleTunnelpublic void releaseWriter()
releaseWriter in interface GuacamoleTunnelpublic boolean hasQueuedWriterThreads()
GuacamoleTunnelhasQueuedWriterThreads 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 © 2016. All rights reserved.