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

com.tapstream.sdk.ApiFuture Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package com.tapstream.sdk;

import java.util.concurrent.Future;


public interface ApiFuture extends Future {

    /**
     * Set a {@link Callback} for this future removing the previous callback (if any existed).
     * 

* If the future has already been completed then the callback will be invoked immediately by the * calling thread. If the future has not yet been completed then the callback will be called by * a thread in the Tapstream client's internal thread pool. Because of this you need to take * care not do any long blocking operations in the callback. * * @param callback the callback object to associate with this future. */ void setCallback(Callback callback); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy