Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client.operation;
 
 
 public class HeadOperationResult
 {
    
Actual length fetched, if any
    protected long _contentLength = -1L;
    
    public HeadOperationResult(OperationConfig config)
    {
        super(config);
    }
    
    public HeadOperationResult setContentLength(ClusterServerNode serverlong length)
    {
        if ( != null) {
            throw new IllegalStateException("Already received successful response from "++"; trying to override with "+server);
        }
         = server;
         = length;
        return this;
    }
    // // // Extended API
    public long getContentLength() { return ; }
New to GrepCode? Check out our FAQ X