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

com.global.api.gateways.events.TimeoutEvent Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.gateways.events;

public class TimeoutEvent extends GatewayEvent {
    public TimeoutEvent(String connectorName, GatewayEventType eventType) {
        super(connectorName, eventType);
    }

    public String getEventMessage() {
        String rvalue = super.getEventMessage();
        if(getEventType().equals(GatewayEventType.Timeout)) {
            rvalue = rvalue.concat("Host did not respond on primary or secondary hosts.");
        }
        else {
            rvalue = rvalue.concat("Host did not respond on primary host, connecting to secondary host.");
        }

        return rvalue;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy