Example usage for com.google.common.util.concurrent AbstractIdleService getClass

List of usage examples for com.google.common.util.concurrent AbstractIdleService getClass

Introduction

In this page you can find the example usage for com.google.common.util.concurrent AbstractIdleService getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:eu.eubrazilcc.lvl.core.ShutdownHook.java

/**
 * Registers a service for shutdown.//w  ww .j  a v  a  2  s . com
 * @param service the service of which the shutdown sequence is managed by this class.
 */
public void register(final AbstractIdleService service) {
    checkArgument(service != null, "Uninitialized or invalid service");
    final String name = service.getClass().getCanonicalName();
    services.put(name, service);
}