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

com.github.ltsopensource.nio.processor.WriteRequest Maven / Gradle / Ivy

package com.github.ltsopensource.nio.processor;

import com.github.ltsopensource.nio.handler.Futures;

import java.nio.ByteBuffer;

/**
 * @author Robert HG ([email protected]) on 1/30/16.
 */
public class WriteRequest {

    private ByteBuffer message;
    private Futures.WriteFuture writeFuture;

    public WriteRequest(ByteBuffer message, Futures.WriteFuture writeFuture) {
        this.message = message;
        this.writeFuture = writeFuture;
    }

    public Futures.WriteFuture getWriteFuture() {
        return writeFuture;
    }

    public void setWriteFuture(Futures.WriteFuture writeFuture) {
        this.writeFuture = writeFuture;
    }

    public ByteBuffer getMessage() {
        return message;
    }

    public void setMessage(ByteBuffer message) {
        this.message = message;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy