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

convex.peer.ServerEvent Maven / Gradle / Ivy

There is a newer version: 0.7.15
Show newest version
package convex.peer;

/**
 * Lightweight wrapper for server events
 */
public class ServerEvent {

    protected ServerInformation information=null;
    protected Server server;
    protected String reason;

    private ServerEvent(Server server, String reason) {
        this.server = server;
        this.reason = reason;
    }

    public static ServerEvent create(Server server, String reason) {
        return new ServerEvent(server, reason);
    }

    public ServerInformation getInformation() {
        if (information==null) {
        	information=ServerInformation.create(server);
        }
    	return information;
    }
    public String getReason() {
        return reason;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy