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
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
-
Method Details
-
main
- Throws:
Exception
-
startUp
protected void startUp()- Specified by:
startUpin classcom.google.common.util.concurrent.AbstractIdleService
-
shutDown
protected void shutDown()- Specified by:
shutDownin classcom.google.common.util.concurrent.AbstractIdleService
-