public class PNConfiguration
extends java.lang.Object
Constructor and Description |
---|
PNConfiguration()
Initialize the PNConfiguration with default values
|
Modifier and Type | Method and Description |
---|---|
PNConfiguration |
setPresenceTimeout(int timeout)
set presence configurations for timeout and allow the client to pick the best interval
|
PNConfiguration |
setPresenceTimeoutWithCustomInterval(int timeout,
int interval)
set presence configurations for timeout and announce interval.
|
public PNConfiguration()
public PNConfiguration setPresenceTimeoutWithCustomInterval(int timeout, int interval)
timeout
- presence timeout; how long before the server considers this client to be gone.interval
- presence announce interval, how often the client should announce itself.public PNConfiguration setPresenceTimeout(int timeout)
timeout
- presence timeout; how long before the server considers this client to be gone.