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

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

Introduction

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

Prototype

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

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.jenkinsci.plugins.workflow.cps.CpsThread.java

@CpsVmThreadOnly
void addCompletionHandler(FutureCallback<Object> h) {
    if (!(h instanceof Serializable))
        throw new IllegalArgumentException(h.getClass() + " is not serializable");
    completionHandlers.add(h);//from   www  .jav  a2 s. co m
}