public interface ApolloSubscriptionConnectionListener extends SubscriptionConnectionListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECT_RESULT_KEY |
static long |
KEEP_ALIVE_INTERVAL_SEC |
Modifier and Type | Method and Description |
---|---|
static ApolloSubscriptionConnectionListener |
createWithKeepAliveDisabled() |
static ApolloSubscriptionConnectionListener |
createWithKeepAliveInterval(java.time.Duration interval) |
default java.time.Duration |
getKeepAliveInterval() |
default boolean |
isKeepAliveEnabled() |
default java.util.Optional<java.lang.Object> |
onConnect(java.lang.Object payload) |
static final long KEEP_ALIVE_INTERVAL_SEC
static final java.lang.String CONNECT_RESULT_KEY
default boolean isKeepAliveEnabled()
default java.util.Optional<java.lang.Object> onConnect(java.lang.Object payload) throws SubscriptionException
SubscriptionException
default java.time.Duration getKeepAliveInterval()
static ApolloSubscriptionConnectionListener createWithKeepAliveDisabled()
static ApolloSubscriptionConnectionListener createWithKeepAliveInterval(java.time.Duration interval)