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

Ice.Instrumentation.ConnectionState 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-2017 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.4
//
// 
//
// Generated from file `Instrumentation.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice.Instrumentation;

/**
 * The state of an Ice connection.
 *
 **/
public enum ConnectionState
{
    
    /**
     * The connection is being validated.
     *
     **/
    ConnectionStateValidating(0),
    
    /**
     * The connection is holding the reception of new messages.
     *
     **/
    ConnectionStateHolding(1),
    
    /**
     * The connection is active and can send and receive messages.
     *
     **/
    ConnectionStateActive(2),
    
    /**
     * The connection is being gracefully shutdown and waits for the
     * peer to close its end of the connection.
     *
     **/
    ConnectionStateClosing(3),
    
    /**
     * The connection is closed and waits for potential dispatch to be
     * finished before being destroyed and detached from the observer.
     *
     **/
    ConnectionStateClosed(4);

    public int
    value()
    {
        return __value;
    }

    public static ConnectionState
    valueOf(int __v)
    {
        switch(__v)
        {
        case 0:
            return ConnectionStateValidating;
        case 1:
            return ConnectionStateHolding;
        case 2:
            return ConnectionStateActive;
        case 3:
            return ConnectionStateClosing;
        case 4:
            return ConnectionStateClosed;
        }
        return null;
    }

    private
    ConnectionState(int __v)
    {
        __value = __v;
    }

    private final int __value;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy