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

Ice.ACM Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.5
//
// 
//
// Generated from file `Connection.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * A collection of Active Connection Management configuration settings.
 **/
public class ACM implements java.lang.Cloneable
{
    /**
     * A timeout value in seconds.
     **/
    public int timeout;

    /**
     * The close semantics.
     **/
    public ACMClose close;

    /**
     * The heartbeat semantics.
     **/
    public ACMHeartbeat heartbeat;

    public ACM()
    {
        close = ACMClose.CloseOff;
        heartbeat = ACMHeartbeat.HeartbeatOff;
    }

    public ACM(int timeout, ACMClose close, ACMHeartbeat heartbeat)
    {
        this.timeout = timeout;
        this.close = close;
        this.heartbeat = heartbeat;
    }

    public boolean
    equals(java.lang.Object rhs)
    {
        if(this == rhs)
        {
            return true;
        }
        ACM _r = null;
        if(rhs instanceof ACM)
        {
            _r = (ACM)rhs;
        }

        if(_r != null)
        {
            if(timeout != _r.timeout)
            {
                return false;
            }
            if(close != _r.close)
            {
                if(close == null || _r.close == null || !close.equals(_r.close))
                {
                    return false;
                }
            }
            if(heartbeat != _r.heartbeat)
            {
                if(heartbeat == null || _r.heartbeat == null || !heartbeat.equals(_r.heartbeat))
                {
                    return false;
                }
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::Ice::ACM");
        __h = IceInternal.HashUtil.hashAdd(__h, timeout);
        __h = IceInternal.HashUtil.hashAdd(__h, close);
        __h = IceInternal.HashUtil.hashAdd(__h, heartbeat);
        return __h;
    }

    public ACM
    clone()
    {
        ACM c = null;
        try
        {
            c = (ACM)super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            assert false; // impossible
        }
        return c;
    }

    public static final long serialVersionUID = -969527045191053991L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy