本文整理汇总了Java中com.amazonaws.services.lambda.runtime.ClientContext类的典型用法代码示例。如果您正苦于以下问题:Java ClientContext类的具体用法?Java ClientContext怎么用?Java ClientContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClientContext类属于com.amazonaws.services.lambda.runtime包,在下文中一共展示了ClientContext类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
/**
* {@inheritDoc}
* @since 2017/12/13
*/
@Override
public final ClientContext getClientContext()
{
// This is only valid if the context is called from the mobile SDK
return null;
}
示例2: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
@Override
public ClientContext getClientContext() {
return clientContext;
}
示例3: setClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public void setClientContext(ClientContext value) {
clientContext = value;
}
示例4: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
@Override
public ClientContext getClientContext() {
return null;
}
示例5: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public ClientContext getClientContext()
{
return null;
}
示例6: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
@Override
public ClientContext getClientContext() {
return clientContext;
}
示例7: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public ClientContext getClientContext() {
return clientContext;
}
示例8: setClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public void setClientContext(ClientContext value) {
clientContext = value;
}
示例9: givenLambdaContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public static Context givenLambdaContext() {
return new Context() {
@Override
public String getAwsRequestId() {
return null;
}
@Override
public String getLogGroupName() {
return null;
}
@Override
public String getLogStreamName() {
return null;
}
@Override
public String getFunctionName() {
return null;
}
@Override
public CognitoIdentity getIdentity() {
return null;
}
@Override
public ClientContext getClientContext() {
return null;
}
@Override
public int getRemainingTimeInMillis() {
return 0;
}
@Override
public int getMemoryLimitInMB() {
return 0;
}
@Override
public LambdaLogger getLogger() {
return null;
}
};
}
示例10: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
@Override
public ClientContext getClientContext() {
return null;
}
示例11: getContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
private Context getContext() {
return new Context() {
@Override
public String getAwsRequestId() {
return "23234234";
}
@Override
public String getLogGroupName() {
return null;
}
@Override
public String getLogStreamName() {
return null;
}
@Override
public String getFunctionName() {
return null;
}
@Override
public String getFunctionVersion() {
return null;
}
@Override
public String getInvokedFunctionArn() {
return null;
}
@Override
public CognitoIdentity getIdentity() {
return null;
}
@Override
public ClientContext getClientContext() {
return null;
}
@Override
public int getRemainingTimeInMillis() {
return 5000;
}
@Override
public int getMemoryLimitInMB() {
return 128;
}
@Override
public LambdaLogger getLogger() {
return null;
}
};
}
示例12: setClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
public void setClientContext(ClientContext value) {
clientContext = value;
}
示例13: getClientContext
import com.amazonaws.services.lambda.runtime.ClientContext; //导入依赖的package包/类
/**
* Returns the client context
*
* @see {@link Context#getClientContext()}
*/
public ClientContext getClientContext() {
return clientContext;
}