public abstract class FutureManagementChannel extends ManagementClientChannelStrategy implements ProtocolConnectionManager.ConnectionOpenHandler
ManagementClientChannelStrategy
.Modifier and Type | Class and Description |
---|---|
static class |
FutureManagementChannel.State |
Constructor and Description |
---|
FutureManagementChannel() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.remoting3.Channel |
awaitChannel()
Get the underlying channel.
|
protected static IOException |
channelClosed() |
void |
close() |
org.jboss.remoting3.Channel |
getChannel()
Get the channel.
|
FutureManagementChannel.State |
getState() |
protected boolean |
isConnected()
Check if connected.
|
protected org.jboss.remoting3.Channel |
openChannel(org.jboss.remoting3.Connection connection,
String serviceType,
org.xnio.OptionMap options)
Open a channel.
|
protected boolean |
prepareClose()
Signal that we are about to close the channel.
|
protected boolean |
setChannel(org.jboss.remoting3.Channel newChannel)
Set the channel.
|
create, create, create
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectionOpened
public org.jboss.remoting3.Channel getChannel() throws IOException
ManagementClientChannelStrategy
getChannel
in class ManagementClientChannelStrategy
IOException
protected static IOException channelClosed()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public FutureManagementChannel.State getState()
protected boolean isConnected()
true
if the connection is open, false
otherwiseprotected org.jboss.remoting3.Channel awaitChannel() throws IOException
IOException
- for any errorprotected boolean prepareClose()
protected org.jboss.remoting3.Channel openChannel(org.jboss.remoting3.Connection connection, String serviceType, org.xnio.OptionMap options) throws IOException
connection
- the connectionserviceType
- the service typeoptions
- the channel optionsIOException
protected boolean setChannel(org.jboss.remoting3.Channel newChannel)
newChannel
- the channelCopyright © 2023 JBoss by Red Hat. All rights reserved.