Example usage for io.netty.channel ChannelFutureListener interface-usage

List of usage examples for io.netty.channel ChannelFutureListener interface-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelFutureListener interface-usage.

Usage

From source file com.basho.riak.client.core.ConnectionPool.java

/**
 * A connection pool that manages Netty channels.
 * <p/>
 * <p>
 * A instance of ConnectionPool is created via its {@link Builder}.
 * </p>

From source file com.ebay.jetstream.event.channel.messaging.http.outbound.OutboundRESTChannel.java

@ManagedResource(objectName = "Event/Channel", description = "Outbound REST Channe")
public class OutboundRESTChannel extends AbstractOutboundChannel implements ChannelFutureListener {

    private static final Logger LOGGER = LoggerFactory.getLogger("com.ebay.jetstream.messaging.http.outbound");
    private RESTChannelAddress m_address;
    private ChannelAlarmListener m_channelAlarmListener;

From source file com.ebay.jetstream.http.netty.client.HttpClient.java

/**
 * 
 * @author shmurthy@ebay.com (shmurthy@ebay.com)
 * HttpClient works off of a queue in its own thread. This design is picked mainly to avoid any locking issues. There is a
 * data queue and a control queue. Control queue is processed at a higher priority.
 */

From source file com.ebay.jetstream.messaging.transport.netty.autoflush.handler.AutoFlushWriterChannelListener.java

/**
 * @author shmurthy@ebay.com - Future Listener installed by AutoFlushWriter
 */

public class AutoFlushWriterChannelListener implements ChannelFutureListener {

From source file com.ebay.jetstream.messaging.transport.netty.eventproducer.EventConsumerActivationRequest.java

/**
 * 
 * 
 * @author shmurthy@ebay.com
 * @version 1.0
 * 

From source file com.ebay.jetstream.messaging.transport.netty.eventproducer.EventProducer.java

/**
 * @author shmurthy@ebay.com This Represents all the publishers on a context associated with a nettytransport. It discovers
 *         consumers listening on the same context that this object is associated with. It discovers the EventCosumers by
 *         listening to the EventConsumerAdvertisement messages. It builds a registry of EventConsumers. Upon detecting
 *         an EventConsumer, it opens a persistent connection to each of the EventConsumers that it discovers. As events
 *         are sent down the stack, the message is dispacthed to each event consumer. It can apply different scheduling mechanisms 

From source file com.linecorp.armeria.client.http.HttpRequestSubscriber.java

final class HttpRequestSubscriber implements Subscriber<HttpObject>, ChannelFutureListener {

    private static final Logger logger = LoggerFactory.getLogger(HttpRequestSubscriber.class);

    enum State {
        NEEDS_DATA_OR_TRAILING_HEADERS, DONE

From source file com.linecorp.armeria.client.HttpRequestSubscriber.java

final class HttpRequestSubscriber implements Subscriber<HttpObject>, ChannelFutureListener {

    private static final Logger logger = LoggerFactory.getLogger(HttpRequestSubscriber.class);

    enum State {
        NEEDS_TO_WRITE_FIRST_HEADER, NEEDS_DATA_OR_TRAILING_HEADERS, DONE

From source file com.linecorp.armeria.server.http.HttpResponseSubscriber.java

final class HttpResponseSubscriber implements Subscriber<HttpObject>, ChannelFutureListener {

    private static final Logger logger = LoggerFactory.getLogger(HttpResponseSubscriber.class);

    enum State {
        NEEDS_HEADERS, NEEDS_DATA_OR_TRAILING_HEADERS, DONE,

From source file com.mastfrog.acteur.io.FileWriter.java

/**
 * Efficient implementation of streaming a {@link java.io.File} to the response.
 * Uses chunked encoding.  If a File is injected in the request scope, can use
 * the class rather than instantiating it direcly.  By default, streams the
 * file in 1024 byte chunks, unless passed a different value in the 3-argument
 * constructor.