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

com.zeroc.Ice.ACMHeartbeat 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) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.9
//
// 
//
// Generated from file `Connection.ice'
//
// Warning: do not edit this file.
//
// 
//

package com.zeroc.Ice;

/**
 * Specifies the heartbeat semantics for Active Connection Management.
 **/
public enum ACMHeartbeat
{
    /**
     * Disables heartbeats.
     **/
    HeartbeatOff(0),
    /**
     * Send a heartbeat at regular intervals if the connection is idle and only if there are pending dispatch.
     **/
    HeartbeatOnDispatch(1),
    /**
     * Send a heartbeat at regular intervals when the connection is idle.
     **/
    HeartbeatOnIdle(2),
    /**
     * Send a heartbeat at regular intervals until the connection is closed.
     **/
    HeartbeatAlways(3);

    public int value()
    {
        return _value;
    }

    public static ACMHeartbeat valueOf(int v)
    {
        switch(v)
        {
        case 0:
            return HeartbeatOff;
        case 1:
            return HeartbeatOnDispatch;
        case 2:
            return HeartbeatOnIdle;
        case 3:
            return HeartbeatAlways;
        }
        return null;
    }

    private ACMHeartbeat(int v)
    {
        _value = v;
    }

    private final int _value;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy