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

com.jeesuite.filesystem.sdk.fdfs.exchange.RequestorEncoder Maven / Gradle / Ivy

There is a newer version: 1.3.6
Show newest version
package com.jeesuite.filesystem.sdk.fdfs.exchange;

import io.netty.buffer.ByteBufAllocator;

import java.util.List;

/**
 * @author siuming
 */
public class RequestorEncoder extends RequestorSupport {

    private final Encoder encoder;

    /**
     * @param encoder
     */
    public RequestorEncoder(Encoder encoder) {
        this.encoder = encoder;
    }

    @Override
    protected List writeRequests(ByteBufAllocator alloc) {
        return encoder.encode(alloc);
    }

    @Override
    public String toString() {
        return "RequestorEncoder{" +
                "encoder=" + encoder +
                '}';
    }
}