public interface PeriodMXBean
This mbean lacks a TYPE
declaration because it's
a generic control interface applicable to a variety of
object types (e.g., a stream or window).
The type of the associated object is to be used when
registering instances of this mbean with the
ControlService
.
Modifier and Type | Method and Description |
---|---|
long |
getPeriod()
Get the period.
|
java.util.concurrent.TimeUnit |
getUnit()
Get the time unit for
getPeriod() . |
void |
setPeriod(long period)
Set the period.
|
void |
setPeriod(long period,
java.util.concurrent.TimeUnit unit)
Set the period and unit
|
long getPeriod()
java.util.concurrent.TimeUnit getUnit()
getPeriod()
.void setPeriod(long period)
period
- the periodvoid setPeriod(long period, java.util.concurrent.TimeUnit unit)
period
- the periodunit
- the TimeUnit
of period
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641