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

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

package com.zeroc.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 - 2024 Weber Informatics LLC | Privacy Policy