List of usage examples for java.beans PropertyChangeSupport removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
From source file:org.eclipsetrader.directa.internal.core.connector.StreamingConnector.java
protected void disposeSubscription(FeedSubscription subscription) { synchronized (symbolSubscriptions) { if (subscription.decrementInstanceCount() <= 0) { IdentifierType identifierType = subscription.getIdentifierType(); if (subscription.getIdentifier() != null) { PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport) subscription .getIdentifier().getAdapter(PropertyChangeSupport.class); if (propertyChangeSupport != null) { propertyChangeSupport.removePropertyChangeListener(this); }// ww w . j a v a 2s.c om } symbolSubscriptions.remove(identifierType.getSymbol()); subscriptionsChanged = true; } } }
From source file:org.eclipsetrader.directa.internal.core.connector.StreamingConnector.java
protected void disposeSubscription2(FeedSubscription subscription, FeedSubscription2 subscription2) { synchronized (symbolSubscriptions2) { if (subscription.decrementLevel2InstanceCount() <= 0) { IdentifierType identifierType = subscription.getIdentifierType(); symbolSubscriptions2.remove(identifierType.getSymbol()); subscriptionsChanged = true; }// w w w .j a v a 2s . co m } synchronized (symbolSubscriptions) { if (subscription.decrementInstanceCount() <= 0) { IdentifierType identifierType = subscription.getIdentifierType(); if (subscription.getIdentifier() != null) { PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport) subscription .getIdentifier().getAdapter(PropertyChangeSupport.class); if (propertyChangeSupport != null) { propertyChangeSupport.removePropertyChangeListener(this); } } symbolSubscriptions.remove(identifierType.getSymbol()); subscriptionsChanged = true; } } }
From source file:org.eclipsetrader.kdb.internal.core.connector.SnapshotConnector.java
protected void disposeSubscription(FeedSubscription subscription) { synchronized (symbolSubscriptions) { if (subscription.decrementInstanceCount() <= 0) { IdentifierType identifierType = subscription.getIdentifierType(); if (subscription.getIdentifier() != null) { PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport) subscription .getIdentifier().getAdapter(PropertyChangeSupport.class); if (propertyChangeSupport != null) { propertyChangeSupport.removePropertyChangeListener(this); }/*from ww w. ja v a2s . co m*/ } symbolSubscriptions.remove(identifierType.getSymbol()); setSubscriptionsChanged(true); } } }