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

com.zipwhip.concurrent.CascadeStateObserver Maven / Gradle / Ivy

package com.zipwhip.concurrent;

import com.zipwhip.api.NestedObservableFuture;
import com.zipwhip.events.Observer;

/**
* Created with IntelliJ IDEA.
* User: Michael
* Date: 9/9/12
* Time: 5:19 PM
* To change this template use File | Settings | File Templates.
*/
public class CascadeStateObserver implements Observer> {

    private final ObservableFuture future;
    private final T result;

    public CascadeStateObserver(ObservableFuture future, T result) {
        this.future = future;
        this.result = result;
    }

    @Override
    public void notify(Object sender, ObservableFuture item) {
        NestedObservableFuture.syncState(item, future, result);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy