本文整理匯總了Java中lilypad.client.connect.api.result.impl.GetKeyResult類的典型用法代碼示例。如果您正苦於以下問題:Java GetKeyResult類的具體用法?Java GetKeyResult怎麽用?Java GetKeyResult使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GetKeyResult類屬於lilypad.client.connect.api.result.impl包,在下文中一共展示了GetKeyResult類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: exec
import lilypad.client.connect.api.result.impl.GetKeyResult; //導入依賴的package包/類
@Override
public Construct exec(Target t, Environment environment, Construct... args) throws ConfigRuntimeException {
try {
GetKeyResult result = CHLilyPadStatic.getConnect(t).request(new GetKeyRequest()).awaitUninterruptibly();
CArray r = CHLilyPadStatic.evaluate(result, t);
r.set("key", result.getKey());
return r;
} catch (RequestException ex) {
throw new ConfigRuntimeException(ex.getMessage(), Exceptions.ExceptionType.PluginInternalException, t);
}
}
示例2: decode
import lilypad.client.connect.api.result.impl.GetKeyResult; //導入依賴的package包/類
public GetKeyResult decode(StatusCode statusCode, ByteBuf buffer) {
if(statusCode == StatusCode.SUCCESS) {
return new GetKeyResult(BufferUtils.readString(buffer));
} else {
return new GetKeyResult(statusCode);
}
}
示例3: getResult
import lilypad.client.connect.api.result.impl.GetKeyResult; //導入依賴的package包/類
public Class<GetKeyResult> getResult() {
return GetKeyResult.class;
}
示例4: getResult
import lilypad.client.connect.api.result.impl.GetKeyResult; //導入依賴的package包/類
/**
*
* @return accompanying result of the request
*/
public Class<GetKeyResult> getResult() {
return GetKeyResult.class;
}