com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Enum ChannelLifetime

java.lang.Object
  extended by java.lang.Enum<ChannelLifetime>
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ChannelLifetime
All Implemented Interfaces:
Serializable, Comparable<ChannelLifetime>

public enum ChannelLifetime
extends Enum<ChannelLifetime>

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Enum Constant Summary
INVALID_LIFETIME_VALUE
          If unknown value.
ONESHOOT
          Server channel will be invalidated after accept.
RESIDENT
          server channel will be kept after accept.
 
Method Summary
static ChannelLifetime fromId(int id)
          Creates a lifetime out of a given id.
 int getId()
          Gets the ID.
 void setId(int id)
          Sets the ID.
static ChannelLifetime valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChannelLifetime[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONESHOOT

public static final ChannelLifetime ONESHOOT
Server channel will be invalidated after accept.


RESIDENT

public static final ChannelLifetime RESIDENT
server channel will be kept after accept.


INVALID_LIFETIME_VALUE

public static final ChannelLifetime INVALID_LIFETIME_VALUE
If unknown value.

Method Detail

values

public static ChannelLifetime[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ChannelLifetime c : ChannelLifetime.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ChannelLifetime valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getId

public int getId()
Gets the ID.

Returns:
the ID
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

setId

public void setId(int id)
Sets the ID.

Parameters:
id - the ID to set
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

fromId

public static ChannelLifetime fromId(int id)
Creates a lifetime out of a given id.

Parameters:
id - The id of the ChannelLifetime.
Returns:
The specified lifetime or INVALID_LIFETIME_VALUE if id was not known.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.