Class InstanceState
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the current state of the instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCode()
The low byte represents the state.getName()
The current state of the instance.int
hashCode()
void
The low byte represents the state.void
setName
(InstanceStateName name) The current state of the instance.void
The current state of the instance.toString()
Returns a string representation of this object; useful for testing and debugging.The low byte represents the state.withName
(InstanceStateName name) The current state of the instance.The current state of the instance.
-
Constructor Details
-
InstanceState
public InstanceState()
-
-
Method Details
-
setCode
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
- Parameters:
code
- The low byte represents the state. The high byte is an opaque internal value and should be ignored.-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
-
-
-
getCode
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
- Returns:
- The low byte represents the state. The high byte is an opaque
internal value and should be ignored.
-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
-
-
-
withCode
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
- Parameters:
code
- The low byte represents the state. The high byte is an opaque internal value and should be ignored.-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setName
The current state of the instance.
- Parameters:
name
- The current state of the instance.- See Also:
-
getName
The current state of the instance.
- Returns:
- The current state of the instance.
- See Also:
-
withName
The current state of the instance.
- Parameters:
name
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setName
The current state of the instance.
- Parameters:
name
- The current state of the instance.- See Also:
-
withName
The current state of the instance.
- Parameters:
name
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-