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

Ice.ACMClose 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.7.1
//
// 
//
// Generated from file `Connection.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Specifies the close semantics for Active Connection Management.
 **/
public enum ACMClose
{
    /**
     * Disables automatic connection closure.
     **/
    CloseOff(0),

    /**
     * Gracefully closes a connection that has been idle for the configured timeout period.
     **/
    CloseOnIdle(1),

    /**
     * Forcefully closes a connection that has been idle for the configured timeout period,
     * but only if the connection has pending invocations.
     **/
    CloseOnInvocation(2),

    /**
     * Combines the behaviors of CloseOnIdle and CloseOnInvocation.
     **/
    CloseOnInvocationAndIdle(3),

    /**
     * Forcefully closes a connection that has been idle for the configured timeout period,
     * regardless of whether the connection has pending invocations or dispatch.
     **/
    CloseOnIdleForceful(4);

    public int value()
    {
        return _value;
    }

    public static ACMClose valueOf(int v)
    {
        switch(v)
        {
        case 0:
            return CloseOff;
        case 1:
            return CloseOnIdle;
        case 2:
            return CloseOnInvocation;
        case 3:
            return CloseOnInvocationAndIdle;
        case 4:
            return CloseOnIdleForceful;
        }
        return null;
    }

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

    private final int _value;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy