public class ChannelAssociation extends Object
Constructor and Description |
---|
ChannelAssociation(org.jboss.remoting3.Channel channel) |
Modifier and Type | Method and Description |
---|---|
org.jboss.remoting3.MessageOutputStream |
acquireChannelMessageOutputStream()
|
org.jboss.remoting3.Channel |
getChannel() |
void |
releaseChannelMessageOutputStream(org.jboss.remoting3.MessageOutputStream messageOutputStream)
Releases a previously held permit/lock on a message outputstream of a channel and also closes
the
messageOutputStream |
public ChannelAssociation(org.jboss.remoting3.Channel channel)
public org.jboss.remoting3.MessageOutputStream acquireChannelMessageOutputStream() throws Exception
MessageOutputStream
for the Channel
represented
by this ChannelAssociation
. Before opening the message outputstream, this method acquires a permit
to make sure only a limited number of simultaneous writes are allowed on the channel. The permit acquistion
is a blocking wait.Exception
public void releaseChannelMessageOutputStream(org.jboss.remoting3.MessageOutputStream messageOutputStream) throws IOException
messageOutputStream
messageOutputStream
- The message outputstreamIOException
public org.jboss.remoting3.Channel getChannel()
Copyright © 2016 JBoss by Red Hat. All rights reserved.