public interface PresenceResourceUser extends PresenceResourceHelper, ThreadPoolUser
Modifier and Type | Method and Description |
---|---|
default boolean |
isPresent()
returns a CompletableFuture containing true if present, else false.
|
default boolean |
isPresent(boolean strict)
returns a CompletableFuture containing true if present, else false
if not presence-providers were found, it returns false.
|
default boolean |
isPresent(boolean strict,
boolean ifNotPresent)
returns a CompletableFuture containing true if present, else false.
|
default boolean |
isPresent(boolean strict,
boolean ifNotPresent,
int timeout)
returns a CompletableFuture containing true if present, else false.
|
getIsPresent, nonStrictAvailable
generateResource, generateResource
debug, debug, error, error, getContext
getID, isOwner
default boolean isPresent()
default boolean isPresent(boolean strict)
strict
- true if only addons where it is highly likely that the user is around should be creating the resultdefault boolean isPresent(boolean strict, boolean ifNotPresent)
strict
- true if only addons where it is highly likely that the user is around should be creating the resultifNotPresent
- the default valuedefault boolean isPresent(boolean strict, boolean ifNotPresent, int timeout)
strict
- true if only addons where it is highly likely that the user is around should be creating the resultifNotPresent
- the default valuetimeout
- the timeout in millisecondsCopyright © 2016. All rights reserved.