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

ws.wamp.jawampa.connection.IWampConnectionFuture Maven / Gradle / Ivy

package ws.wamp.jawampa.connection;

/**
 * A lightweight future type which is used for the implementation
 * of WAMP connection adapters.
 */
public interface IWampConnectionFuture {
    /** Whether the operation completed with success or an error */
    boolean isSuccess();
    
    /** The result of the operation (if the operation completed with success) */
    T result();
    
    /** An error reason (if the operation completed with an error */
    Throwable error();
    
    /** Returns an arbitrary state object which is stored inside the future */
    Object state();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy