com.zeroc.Ice.Instrumentation.ThreadState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
//
// 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;
}