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

com.fasterxml.clustermate.service.msg.StreamingResponseContent Maven / Gradle / Ivy

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.service.msg;

import java.io.*;

/**
 * Interface wrapped around content that is dynamically read and written
 * as part of Service response processing.
 */
public interface StreamingResponseContent
{
    public void writeContent(OutputStream out) throws IOException;

    /**
     * Method that may be called to check length of the content to stream,
     * if known. If length is not known, -1 will be returned; otherwise
     * non-negative length.
     */
    public long getLength();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy