Class Consumer

java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
com.example.consumer3_localization.Consumer
All Implemented Interfaces:
com.google.common.util.concurrent.Service

public class Consumer extends com.google.common.util.concurrent.AbstractIdleService
This is an example consumer that connects to the provider and queries Localization service.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
     
    protected void
     
    protected void
     

    Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • startUp

      protected void startUp()
      Specified by:
      startUp in class com.google.common.util.concurrent.AbstractIdleService
    • shutDown

      protected void shutDown()
      Specified by:
      shutDown in class com.google.common.util.concurrent.AbstractIdleService