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, wait
getSocket, getUUID
public AbstractGuacamoleTunnel()
public GuacamoleReader acquireReader()
acquireReader
in interface GuacamoleTunnel
public void releaseReader()
releaseReader
in interface GuacamoleTunnel
public boolean hasQueuedReaderThreads()
hasQueuedReaderThreads
in interface GuacamoleTunnel
public GuacamoleWriter acquireWriter()
acquireWriter
in interface GuacamoleTunnel
public void releaseWriter()
releaseWriter
in interface GuacamoleTunnel
public boolean hasQueuedWriterThreads()
GuacamoleTunnel
hasQueuedWriterThreads
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 © 2017. All rights reserved.