/** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }
/** * Shuts down the client, releasing all managed resources. This includes * forcibly terminating all pending asynchronous service calls. Clients who * wish to give pending asynchronous service calls time to complete should * call getExecutorService().shutdown() followed by * getExecutorService().awaitTermination() prior to calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); }
@Override public void shutdown() { dynamoDBClient.shutdown(); } }
/** * Stops the client and releases resources. * <b>There's no need to call this explicitly!</b> */ protected static void shutdownClient() { if (ddbClient != null) { ddbClient.shutdown(); ddbClient = null; } }
@Override public void shutdown() { dynamoDBClient.shutdown(); } }
@Override protected void stopService() { m_client.shutdown(); }
@Override protected void stopService() { m_ddbClient.shutdown(); }
/** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }
public void close() { while (!writeBatchMap.isEmpty()) { writeBatch(Reporter.NULL, 0); } if (dynamoDB != null) { dynamoDB.shutdown(); } }
public void close() { while (!writeBatchMap.isEmpty()) { writeBatch(Reporter.NULL, 0); } if (dynamoDB != null) { dynamoDB.shutdown(); } }