public interface GuacamoleTunnel
Modifier and Type | Field and Description |
---|---|
static String |
INTERNAL_DATA_OPCODE
The Guacamole protocol instruction opcode reserved for arbitrary
internal use by tunnel implementations.
|
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.
|
static final String INTERNAL_DATA_OPCODE
GuacamoleReader acquireReader()
void releaseReader()
boolean hasQueuedReaderThreads()
GuacamoleWriter acquireWriter()
void releaseWriter()
boolean hasQueuedWriterThreads()
UUID getUUID()
GuacamoleSocket getSocket()
void close() throws GuacamoleException
GuacamoleException
- if an error occurs while releasing
resources.boolean isOpen()
Copyright © 2018. All rights reserved.