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.Exceptionpublic void releaseChannelMessageOutputStream(org.jboss.remoting3.MessageOutputStream messageOutputStream)
throws IOException
messageOutputStreammessageOutputStream - The message outputstreamIOExceptionpublic org.jboss.remoting3.Channel getChannel()
Copyright © 2014 JBoss by Red Hat. All rights reserved.