@Override public void run () { listener.notifySubscriptionChange ( state, error ); listener.notifyDataChange ( value, attributes, true ); } } );
@Override public void run () { listener.notifySubscriptionChange ( SubscriptionState.GRANTED, null ); }; } );
@Override public void run () { for ( final ListenerInfo listenerInfo : listeners ) { try { listenerInfo.getListener ().notifyDataChange ( value, attributes, cache ); } catch ( final Exception e ) { logger.info ( "Failed to notify listener for data change", e ); } } } } );
@Override public void run () { listener.notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); } } );
@Override public void run () { for ( final ListenerInfo listenerInfo : listeners ) { try { listenerInfo.getListener ().notifyDataChange ( value, attributes, cache ); } catch ( final Exception e ) { logger.info ( "Failed to notify listener for data change", e ); } } } } );
@Override public void run () { listener.notifySubscriptionChange ( state, error ); listener.notifyDataChange ( value, attributes, true ); } } );
@Override public void run () { listener.notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); }; } );
@Override public void run () { listener.notifyDataChange ( message.getValue (), makeAttributes ( message.getAddedOrUpdated (), message.getRemoved () ), message.isCacheValue () ); } } );
@Override public void run () { if ( oldValue.getSubscriptionState () != SubscriptionState.CONNECTED ) { listener.notifySubscriptionChange ( SubscriptionState.CONNECTED, null ); } listener.notifyDataChange ( valueChange, attributesChange.isEmpty () ? null : attributesChange, false ); } } );
@Override public void run () { listener.notifySubscriptionChange ( state, null ); } } );
@Override public void run () { if ( state != ConnectionState.BOUND ) { listener.notifySubscriptionChange ( SubscriptionState.DISCONNECTED, null ); } else if ( value != null ) { listener.notifySubscriptionChange ( SubscriptionState.CONNECTED, null ); listener.notifyDataChange ( value.getValue (), value.getAttributes (), true ); } else { listener.notifySubscriptionChange ( SubscriptionState.GRANTED, null ); } } } );
@Override public void run () { listener.notifySubscriptionChange ( message.getSubscriptionState (), null ); } } );
@Override public void run () { listener.notifySubscriptionChange ( SubscriptionState.CONNECTED, null ); listener.notifyDataChange ( value.getValue (), value.getAttributes (), false ); } } );
@Override public void run () { for ( final ListenerInfo listenerInfo : listeners ) { try { listenerInfo.getListener ().notifySubscriptionChange ( subscriptionState, e ); } catch ( final Exception e ) { logger.info ( "Failed to notify listener subscription change", e ); } } } } );
@Override public void run () { listener.notifySubscriptionChange ( SubscriptionState.CONNECTED, null ); listener.notifyDataChange ( value.getValue (), value.getAttributes (), true ); }; } );
@Override public void run () { for ( final ListenerInfo listenerInfo : listeners ) { try { listenerInfo.getListener ().notifySubscriptionChange ( subscriptionState, e ); } catch ( final Exception e ) { logger.info ( "Failed to notify listener subscription change", e ); } } } } );