Package org.nuxeo.connect.client.status
Class ConnectStatusHolder
- java.lang.Object
-
- org.nuxeo.connect.client.status.ConnectStatusHolder
-
public class ConnectStatusHolder extends Object
- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected static ConnectStatusHolder
instance
protected SubscriptionStatusWrapper
instanceStatus
protected static Log
log
protected static int
REFRESH_PERIOD_MINUTES
-
Constructor Summary
Constructors Constructor Description ConnectStatusHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
flush()
long
getRegistrationExpirationTimestamp()
Returns the registration expiration timestamp included in the CLID, or -1 if the CLID cannot be loaded or doesn't include the expiration timestamp (old v0 format).protected org.nuxeo.connect.registration.ConnectRegistrationService
getService()
SubscriptionStatusWrapper
getStatus()
SubscriptionStatusWrapper
getStatus(boolean forceRefresh)
static ConnectStatusHolder
instance()
boolean
isRegistered()
boolean
isRegistred()
Deprecated.Since 9.2, useisRegistered()
instead.
-
-
-
Field Detail
-
instance
protected static ConnectStatusHolder instance
-
instanceStatus
protected SubscriptionStatusWrapper instanceStatus
-
log
protected static final Log log
-
REFRESH_PERIOD_MINUTES
protected static final int REFRESH_PERIOD_MINUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
instance
public static ConnectStatusHolder instance()
-
getService
protected org.nuxeo.connect.registration.ConnectRegistrationService getService()
-
isRegistred
@Deprecated public boolean isRegistred()
Deprecated.Since 9.2, useisRegistered()
instead.
-
isRegistered
public boolean isRegistered()
- Since:
- 9.2
-
getStatus
public SubscriptionStatusWrapper getStatus()
-
flush
public void flush()
-
getStatus
public SubscriptionStatusWrapper getStatus(boolean forceRefresh)
-
getRegistrationExpirationTimestamp
public long getRegistrationExpirationTimestamp()
Returns the registration expiration timestamp included in the CLID, or -1 if the CLID cannot be loaded or doesn't include the expiration timestamp (old v0 format).- Since:
- 10.2
-
-