![JAR search and dependency download from the Maven repository](/logo.png)
convex.peer.ServerEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-peer Show documentation
Show all versions of convex-peer Show documentation
Convex Peer implementation and APIs
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