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

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

Go to download

jawampa is a library that provides client and server support for the Web Application Messaging Protocol (WAMP) on the JVM.

There is a newer version: 0.5.0
Show newest version
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