Tabnine Logo
Worker.shutdown
Code IndexAdd Tabnine to your IDE (free)

How to use
shutdown
method
in
com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker

Best Java code snippets using com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker.shutdown (Showing top 9 results out of 315)

origin: io.zipkin.aws/zipkin-collector-kinesis

@Override
public void close() {
 // The executor is a single thread that is tied to this worker. Once the worker shuts down
 // the executor will stop.
 worker.shutdown();
}
origin: scopely/kinesis-vcr

public void stop() {
  worker.shutdown();
}
origin: io.macgyver.rx-aws/rx-aws

public void stop() {
  worker.shutdown();
}
origin: harishreedharan/usingflumecode

@Override
protected void doStop() throws FlumeException {
 worker.shutdown();
 executor.shutdownNow();
}
origin: awslabs/amazon-kinesis-aggregators

public void shutdown() throws Exception {
  this.aggGroup.shutdown(true);
  worker.shutdown();
}
origin: com.amazonaws/amazon-kinesis-client

/**
 * Start consuming data from the stream, and pass it to the application record processors.
 */
public void run() {
  if (shutdown) {
    return;
  }
  try {
    initialize();
    LOG.info("Initialization complete. Starting worker loop.");
  } catch (RuntimeException e1) {
    LOG.error("Unable to initialize after " + MAX_INITIALIZATION_ATTEMPTS + " attempts. Shutting down.", e1);
    shutdown();
  }
  while (!shouldShutdown()) {
    runProcessLoop();
  }
  finalShutdown();
  LOG.info("Worker loop is complete. Exiting from worker.");
}
origin: com.amazonaws/amazon-kinesis-client

this.shutdown();
return GracefulShutdownContext.SHUTDOWN_ALREADY_COMPLETED;
origin: com.amazonaws/amazon-kinesis-client

context.getWorker().shutdown();
origin: aws-samples/aws-dynamodb-examples

worker.shutdown();
t.join();
com.amazonaws.services.kinesis.clientlibrary.lib.workerWorkershutdown

Javadoc

Signals worker to shutdown. Worker will try initiating shutdown of all record processors. Note that if executor services were passed to the worker by the user, worker will not attempt to shutdown those resources. Shutdown Process When called this will start shutdown of the record processor, and eventually shutdown the worker itself.
  1. Call to start shutdown invoked
  2. Lease coordinator told to stop taking leases, and to drop existing leases.
  3. Worker discovers record processors that no longer have leases.
  4. Worker triggers shutdown with state ShutdownReason#ZOMBIE.
  5. Once all record processors are shutdown, worker terminates owned resources.
  6. Shutdown complete.

Popular methods of Worker

  • <init>
  • run
    Start consuming data from the stream, and pass it to the application record processors.
  • buildConsumer
  • cleanupShardConsumers
    NOTE: This method is internal/private to the Worker class. It has package access solely for testing.
  • createGracefulShutdownCallable
    Creates a callable that will execute the graceful shutdown process. This callable can be used to exe
  • createOrGetShardConsumer
    NOTE: This method is internal/private to the Worker class. It has package access solely for testing.
  • createWorkerShutdownCallable
  • finalShutdown
    Perform final shutdown related tasks for the worker including shutting down worker owned executor se
  • getExecutorService
    Returns default executor service that should be used by the worker.
  • getMetricsFactory
    Given configuration, returns appropriate metrics factory.
  • getShardInfoForAssignments
  • getShardInfoShardConsumerMap
  • getShardInfoForAssignments,
  • getShardInfoShardConsumerMap,
  • initialize,
  • isShutdownComplete,
  • requestShutdown,
  • runProcessLoop,
  • setField,
  • shouldShutdown,
  • startGracefulShutdown

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now