public final class ActivityCheckConfiguration
extends java.lang.Object
The configuration consists of 2 parameters - removal inactivityTimeout and checkPeriod.
The former describes time threshold after which beacon device is interpreted as inactive and should be removed.
The latter specifies period of search of inactive beacons.
Modifier and Type | Field and Description |
---|---|
static ActivityCheckConfiguration |
DEFAULT
Predefined default Beacon Activity Check Configuration.
|
static ActivityCheckConfiguration |
DISABLED
Predefined constant disabling device activity check configuration.
|
static ActivityCheckConfiguration |
MINIMAL
Predefined minimal allowed Beacon Activity Check Configuration.
|
Modifier and Type | Method and Description |
---|---|
static ActivityCheckConfiguration |
create(long inactivityTimeout,
long checkPeriod)
Instantiates new immutable Beacon Activity Check Configuration instance
|
boolean |
equals(java.lang.Object o) |
long |
getCheckPeriod()
Provides check period.
|
long |
getInactivityTimeout()
Provides Beacon Inactivity Timeout [ms].
|
int |
hashCode() |
public static final ActivityCheckConfiguration DISABLED
public static final ActivityCheckConfiguration MINIMAL
DEFAULT
is the best option.public static final ActivityCheckConfiguration DEFAULT
public static ActivityCheckConfiguration create(long inactivityTimeout, long checkPeriod)
inactivityTimeout
- the removal threshold [ms]checkPeriod
- the removal period [ms]public long getInactivityTimeout()
public long getCheckPeriod()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object