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()
GuacamoleTunnel
acquireReader
in interface GuacamoleTunnel
public void releaseReader()
GuacamoleTunnel
releaseReader
in interface GuacamoleTunnel
public boolean hasQueuedReaderThreads()
GuacamoleTunnel
hasQueuedReaderThreads
in interface GuacamoleTunnel
public GuacamoleWriter acquireWriter()
GuacamoleTunnel
acquireWriter
in interface GuacamoleTunnel
public void releaseWriter()
GuacamoleTunnel
releaseWriter
in interface GuacamoleTunnel
public boolean hasQueuedWriterThreads()
GuacamoleTunnel
hasQueuedWriterThreads
in interface GuacamoleTunnel
public UUID getUUID()
GuacamoleTunnel
getUUID
in interface GuacamoleTunnel
public GuacamoleSocket getSocket()
GuacamoleTunnel
getSocket
in interface GuacamoleTunnel
public void close() throws GuacamoleException
GuacamoleTunnel
close
in interface GuacamoleTunnel
GuacamoleException
- if an error occurs while releasing
resources.public boolean isOpen()
GuacamoleTunnel
isOpen
in interface GuacamoleTunnel
Copyright © 2018. All rights reserved.