Package io.microsphere.process
Class ClassicProcessIdResolver
- java.lang.Object
-
- io.microsphere.process.ClassicProcessIdResolver
-
- All Implemented Interfaces:
Prioritized
,ProcessIdResolver
,java.lang.Comparable<Prioritized>
public class ClassicProcessIdResolver extends java.lang.Object implements ProcessIdResolver
ProcessIdResolver
class for classic JDK(5 - 8)- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
ProcessIdResolver
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
Fields inherited from interface io.microsphere.process.ProcessIdResolver
UNKNOWN_PROCESS_ID
-
-
Constructor Summary
Constructors Constructor Description ClassicProcessIdResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
current()
Resolve the current process idint
getPriority()
Get the priorityboolean
supports()
Whether supports to resolve the process id or not?-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo
-
-
-
-
Method Detail
-
supports
public boolean supports()
Description copied from interface:ProcessIdResolver
Whether supports to resolve the process id or not?- Specified by:
supports
in interfaceProcessIdResolver
- Returns:
true
if supports, otherwisefalse
-
current
public java.lang.Long current()
Description copied from interface:ProcessIdResolver
Resolve the current process id- Specified by:
current
in interfaceProcessIdResolver
- Returns:
>null
if can't be resolved
-
getPriority
public int getPriority()
Description copied from interface:Prioritized
Get the priority- Specified by:
getPriority
in interfacePrioritized
- Returns:
- the default is
minimum one
-
-