
org.snapscript.studio.agent.event.PingEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-agent Show documentation
Show all versions of snap-agent Show documentation
Dynamic scripting for the JVM
The newest version!
package org.snapscript.studio.agent.event;
public class PingEvent implements ProcessEvent {
private final String process;
private final long time;
private PingEvent(Builder builder) {
this.process = builder.process;
this.time = builder.time;
}
@Override
public String getProcess() {
return process;
}
public long getTime() {
return time;
}
public static class Builder {
private String process;
private long time;
public Builder(String process){
this.process = process;
}
public Builder withProcess(String process) {
this.process = process;
return this;
}
public Builder withTime(long time) {
this.time = time;
return this;
}
public PingEvent build(){
return new PingEvent(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy