org.headlessintrace.client.connection.ConnectionTimeout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of headlessInTraceClient Show documentation
Show all versions of headlessInTraceClient Show documentation
A headless java API that collects events from other JVMs. Events=method invocations. Initial code taken from http://mchr3k.github.io/org.intrace/. Intended for building diagnostic applications.
package org.headlessintrace.client.connection;
import org.headlessintrace.client.DefaultFactory;
import org.headlessintrace.client.IntraceException;
public class ConnectionTimeout extends IntraceException {
HostPort hostPort = null;
long timeoutMs = -1;
public ConnectionTimeout(HostPort hostPortVal, long timeoutMsVal) {
hostPort = hostPortVal;
timeoutMs = timeoutMsVal;
}
public String getMessage() {
return DefaultFactory.getFactory().getMessages().getConnectionTimeoutMessage(timeoutMs, hostPort.hostNameOrIpAddress, hostPort.port);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy