All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticsearch.http.netty.pipelining.OrderedUpstreamMessageEvent Maven / Gradle / Ivy

There is a newer version: 8.15.1
Show newest version
package org.elasticsearch.http.netty.pipelining;

import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.UpstreamMessageEvent;

import java.net.SocketAddress;

/**
 * Permits upstream message events to be ordered.
 *
 * @author Christopher Hunt
 */
public class OrderedUpstreamMessageEvent extends UpstreamMessageEvent {
    final int sequence;

    public OrderedUpstreamMessageEvent(final int sequence, final Channel channel, final Object msg, final SocketAddress remoteAddress) {
        super(channel, msg, remoteAddress);
        this.sequence = sequence;
    }

    public int getSequence() {
        return sequence;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy