Example usage for org.apache.thrift.transport TNonblockingTransport write

List of usage examples for org.apache.thrift.transport TNonblockingTransport write

Introduction

In this page you can find the example usage for org.apache.thrift.transport TNonblockingTransport write.

Prototype

public abstract int write(ByteBuffer buffer) throws IOException;

Source Link

Usage

From source file:com.thinkaurelius.thrift.util.mem.Buffer.java

License:Apache License

public int writeTo(TNonblockingTransport transport, int start, int count) throws IOException {
    ByteBuffer dup = buffer.duplicate();
    dup.position(start).limit(start + count);

    return transport.write(dup);
}