|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.coherence.config.unit.Units
public class Units
Units is a union of MemorySize and unit count. Note: This class is provided to support the high-units configuration property which can either be a memory size string or the number of units. The default unit calculator depends on whether the configuration explicitly specified a memory size (e.g. <high-units>20M</high-units>).
| Constructor Summary | |
|---|---|
Units(long cUnits)Construct a Units object with the given unit count. |
|
Units(com.oracle.common.util.MemorySize memorySize)Construct a Units object with the given MemorySize. |
|
Units(java.lang.String sValue)Construct a Units object. |
|
| Method Summary | |
|---|---|
com.oracle.common.util.MemorySize |
getMemorySize()Return the MemorySize. |
long |
getUnitCount()Return the unit count. |
boolean |
isMemorySize()Return true if Units contains a MemorySize. |
| Constructor Detail |
|---|
public Units(java.lang.String sValue)
sValue - the unit count or memory sizepublic Units(long cUnits)
cUnits - the unit countpublic Units(com.oracle.common.util.MemorySize memorySize)
MemorySize.
memorySize - the MemorySize| Method Detail |
|---|
public long getUnitCount()
public com.oracle.common.util.MemorySize getMemorySize()
MemorySize. If this object was constructed with a unit count then MemorySize will be null.MemorySize or nullpublic boolean isMemorySize()
MemorySize.MemorySize
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||