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

com.gateway.connector.api.ExchangeConnection Maven / Gradle / Ivy

 
package com.gateway.connector.api;

import com.gateway.connector.Connection;
import com.gateway.connector.Session;
 
public abstract class ExchangeConnection implements Connection {

    protected Session session = null;
    protected String connectionId = null;

    protected volatile boolean close = false;
    protected int connectTimeout = 60 * 60 * 1000; // ms

    public void fireError(RuntimeException e) {
        throw e;
    }

    public boolean isClosed() {
        return close;
    }

    public void setConnectionId(String connectionId) {
        this.connectionId = connectionId;
    }

    public String getConnectionId() {
        return connectionId;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public Session getSession() {
        return session;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy