com.fasterxml.clustermate.client.call.GetCallResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-client Show documentation
Show all versions of clustermate-client Show documentation
Building blocks for client libraries that access
ClusterMate-based service.
package com.fasterxml.clustermate.client.call;
import com.fasterxml.clustermate.client.CallFailure;
public abstract class GetCallResult
extends CallResult
{
protected final T _result;
/*
/**********************************************************************
/* Construction, initialization
/**********************************************************************
*/
protected GetCallResult(int status, T result)
{
super(status);
_result = result;
}
protected GetCallResult(CallFailure fail)
{
super(fail);
_result = null;
}
/*
/**********************************************************************
/* CallResult impl
/**********************************************************************
*/
@Override
public abstract String getHeaderValue(String key);
/*
/**********************************************************************
/* Extended API
/**********************************************************************
*/
public T getResult() { return _result; }
}