public abstract class FutureManagementChannel extends ManagementClientChannelStrategy implements ProtocolConnectionManager.ConnectionOpenHandler
ManagementClientChannelStrategy
.Constructor and Description |
---|
FutureManagementChannel() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.remoting3.Channel |
awaitChannel()
Get the underlying channel.
|
void |
close() |
org.jboss.remoting3.Channel |
getChannel()
Get the channel.
|
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
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
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 © 2013 JBoss by Red Hat. All rights reserved.