Class FeedResponse

java.lang.Object
com.yahoo.container.jdisc.HttpResponse
com.yahoo.vespa.http.server.FeedResponse

public class FeedResponse extends com.yahoo.container.jdisc.HttpResponse
Reads feed responses from a queue and renders them continuously to the feeder.
Author:
Steinar Knutsen
  • Field Summary

    Fields inherited from class com.yahoo.container.jdisc.HttpResponse

    DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeedResponse(int status, BlockingQueue<com.yahoo.vespa.http.server.OperationStatus> operations, int protocolVersion, String sessionId)
     
    FeedResponse(int status, BlockingQueue<com.yahoo.vespa.http.server.OperationStatus> operations, int protocolVersion, String sessionId, int outstandingClientOperations, String hostName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
     

    Methods inherited from class com.yahoo.container.jdisc.HttpResponse

    complete, getJdiscResponse, getLogValues, getRequestType, getStatus, headers, maxPendingBytes, populateAccessLogEntry, setRequestType, setStatus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FeedResponse

      public FeedResponse(int status, BlockingQueue<com.yahoo.vespa.http.server.OperationStatus> operations, int protocolVersion, String sessionId)
    • FeedResponse

      public FeedResponse(int status, BlockingQueue<com.yahoo.vespa.http.server.OperationStatus> operations, int protocolVersion, String sessionId, int outstandingClientOperations, String hostName)
  • Method Details

    • render

      public void render(OutputStream output) throws IOException
      Specified by:
      render in class com.yahoo.container.jdisc.HttpResponse
      Throws:
      IOException
    • getContentType

      public String getContentType()
      Overrides:
      getContentType in class com.yahoo.container.jdisc.HttpResponse
    • getCharacterEncoding

      public String getCharacterEncoding()
      Overrides:
      getCharacterEncoding in class com.yahoo.container.jdisc.HttpResponse