All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gooddata.sdk.service.SimplePollHandler Maven / Gradle / Ivy

There is a newer version: 3.11.1+api3
Show newest version
/*
 * (C) 2023 GoodData Corporation.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
package com.gooddata.sdk.service;

/**
 * For internal use by services employing polling.

* A simple poll handler using same type for polling and result. * * @param polling and result type * * @see FutureResult */ public abstract class SimplePollHandler extends AbstractPollHandler { /** * Creates a new instance of polling handler * * @param pollingUri URI for polling * @param pollAndResultClass class of the polling object and result (or {@link Void}) */ @SuppressWarnings("unchecked") public SimplePollHandler(String pollingUri, Class pollAndResultClass) { super(pollingUri, pollAndResultClass, pollAndResultClass); } @Override public void handlePollResult(T pollResult) { setResult(pollResult); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy