Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client.operation;
 
OperationResult subtype used with GET operations, adds actual result (of type T which is type of com.fasterxml.clustermate.client.call.GetContentProcessor passed to call).

{
    
Actual contents successfully fetched, if any.
    protected T _contents;
    public GetOperationResult(OperationConfig config) {
        super(config);
    }
    public GetOperationResult<T> setContents(ClusterServerNode server, T contents)
    {
        if (server == null) {
            throw new IllegalArgumentException("Should not set null server");
        }
        if ( != null) {
            throw new IllegalStateException("Already received successful response from "++"; trying to override with "+server);
        }
         = server;
         = contents;
        return this;
    }
    
    // // // Extended API
    public T getContents() { return ; }
New to GrepCode? Check out our FAQ X