com.zipwhip.concurrent.DestroyOnComplete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zipwhip-api Show documentation
Show all versions of zipwhip-api Show documentation
Java client to support applications powered by the Zipwhip Cloud
The newest version!
package com.zipwhip.concurrent;
import com.zipwhip.events.Observer;
import com.zipwhip.lifecycle.Destroyable;
/**
* Created with IntelliJ IDEA.
* User: Michael
* Date: 9/10/12
* Time: 3:35 PM
*
* Destroys an object on complete
*/
public class DestroyOnComplete implements Observer {
private Destroyable destroyable;
public DestroyOnComplete(Destroyable destroyable) {
this.destroyable = destroyable;
}
@Override
public void notify(Object sender, T item) {
destroyable.destroy();
destroyable = null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy