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

com.zeroc.Ice.Instrumentation.ThreadState 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.3
//
// 
//
// Generated from file `Instrumentation.ice'
//
// Warning: do not edit this file.
//
// 
//

package com.zeroc.Ice.Instrumentation;

/**
 * The thread state enumeration keeps track of the different possible
 * states of Ice threads.
 **/
public enum ThreadState
{
    /**
     * The thread is idle.
     **/
    ThreadStateIdle(0),
    /**
     * The thread is in use performing reads or writes for Ice
     * connections. This state is only for threads from an Ice thread
     * pool.
     **/
    ThreadStateInUseForIO(1),
    /**
     * The thread is calling user code (servant implementation, AMI
     * callbacks). This state is only for threads from an Ice thread
     * pool.
     **/
    ThreadStateInUseForUser(2),
    /**
     * The thread is performing other internal activities (DNS
     * lookups, timer callbacks, etc).
     **/
    ThreadStateInUseForOther(3);

    public int value()
    {
        return _value;
    }

    public static ThreadState valueOf(int v)
    {
        switch(v)
        {
        case 0:
            return ThreadStateIdle;
        case 1:
            return ThreadStateInUseForIO;
        case 2:
            return ThreadStateInUseForUser;
        case 3:
            return ThreadStateInUseForOther;
        }
        return null;
    }

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

    private final int _value;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy