public class OrderedDownstreamChannelEvent extends Object implements org.jboss.netty.channel.ChannelEvent
| Constructor and Description |
|---|
OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oue,
int subsequence,
boolean last,
org.jboss.netty.channel.ChannelEvent ce)
Construct a downstream channel event for all types of events.
|
OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oue,
int subsequence,
boolean last,
Object message)
Convenience constructor for passing message events.
|
OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oe,
Object message)
Convenience constructor signifying that this downstream message event is the last one for the given sequence,
and that there is only one response.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.channel.Channel |
getChannel() |
org.jboss.netty.channel.ChannelEvent |
getChannelEvent() |
org.jboss.netty.channel.ChannelFuture |
getFuture() |
OrderedUpstreamMessageEvent |
getOrderedUpstreamMessageEvent() |
int |
getSubsequence() |
boolean |
isLast() |
public OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oue, int subsequence, boolean last, org.jboss.netty.channel.ChannelEvent ce)
oue - the OrderedUpstreamMessageEvent that this response is associated withsubsequence - the sequence within the sequencelast - when set to true this indicates that there are no more responses to be received for the
original OrderedUpstreamMessageEventpublic OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oe, Object message)
public OrderedDownstreamChannelEvent(OrderedUpstreamMessageEvent oue, int subsequence, boolean last, Object message)
public OrderedUpstreamMessageEvent getOrderedUpstreamMessageEvent()
public int getSubsequence()
public boolean isLast()
public org.jboss.netty.channel.Channel getChannel()
getChannel in interface org.jboss.netty.channel.ChannelEventpublic org.jboss.netty.channel.ChannelFuture getFuture()
getFuture in interface org.jboss.netty.channel.ChannelEventpublic org.jboss.netty.channel.ChannelEvent getChannelEvent()
Copyright © 2009–2017. All rights reserved.