: DynamoDB - shutdown()을 호출해야합니까? 이 코드를 고려
QuerySpec spec = new QuerySpec()
.withKeyConditionExpression("#1 = :v1")
.withNameMap(new NameMap().with("#1", "tableKey"))
.withValueMap(new ValueMap().withString(":v1", "none.json"));
//connect DynamoDB instance over AWS
DynamoDB dynamoDB = new DynamoDB(Regions.US_WEST_2);
//get the table instance
String tableName = "WFMHistoricalProcessedFiles";
Table table = dynamoDB.getTable(tableName);
ItemCollection<QueryOutcome> items = table.query(spec);
//getting over the results
Iterator<Item> it = items.iterator();
Item item = null;
while (it.hasNext()) {
item = it.next();
System.out.println(item.toJSONPretty());
}
어떤 쿼리 또는 위의 예에서와 같이 스캔을 만들기 위해 DynamoDB의를 사용하는 동안.
연결을 종료하기 위해 shutdown()
으로 전화해야하는 실제 필요가 있습니까?