private synchronized void handleError ( final Throwable e ) { logger.warn ( "Failed to change subscription state", e ); this.subscribed = false; notifySubscriptionChange ( SubscriptionState.DISCONNECTED, e ); }
private synchronized void handleError ( final Throwable e ) { logger.warn ( "Failed to change subscription state", e ); this.subscribed = false; notifySubscriptionChange ( SubscriptionState.DISCONNECTED, e ); }
public synchronized void disconnect () { notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); notifyDataChange ( Variant.NULL, Collections.<String, Variant> emptyMap (), true ); } }
public synchronized void disconnect () { notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); notifyDataChange ( Variant.NULL, Collections.<String, Variant> emptyMap (), true ); } }
protected synchronized void unsubscribe () { try { logger.debug ( "Syncing listen state: inactive" ); this.subscribed = false; this.cachedValue = null; this.cachedAttributes.clear (); notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); this.connection.unsubscribeItem ( this.itemId ); } catch ( final Throwable e ) { logger.warn ( "Failed to handle unsubscribe", e ); } }
protected synchronized void unsubscribe () { try { logger.debug ( "Syncing listen state: inactive" ); this.subscribed = false; this.cachedValue = null; this.cachedAttributes.clear (); notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); this.connection.unsubscribeItem ( this.itemId ); } catch ( final Throwable e ) { logger.warn ( "Failed to handle unsubscribe", e ); } }