Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-10491 Deprecate Listenable.getListeners #7211

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ default ServerStatistics stats() {
/**
* Returns a set with all the listeners registered by this client for the
* given cache.
*
* @deprecated Since 10.0, with no replacement
*/
@Deprecated
Set<Object> getListeners();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ public void removeClientListener(Object listener) {
await(op.execute());
}

@Deprecated
@Override
public Set<Object> getListeners() {
ClientListenerNotifier listenerNotifier = operationsFactory.getListenerNotifier();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return cache.removeListenerAsync(listener);
}

@Deprecated
@Override
public Set<Object> getListeners() {
return cache.getListeners();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return notifier.removeListenerAsync(listener);
}

@Deprecated
@Override
public Set<Object> getListeners() {
return notifier.getListeners();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return cacheNotifier.removeListenerAsync(listener);
}

@Deprecated
@Override
public Set<Object> getListeners() {
return cacheNotifier.getListeners();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
}
}

@Deprecated
@Override
public Set<Object> getListeners() {
authzHelper.checkPermission(AuthorizationPermission.LISTEN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return cm.removeListenerAsync(listener);
}

@Deprecated
@Override
public Set<Object> getListeners() {
return cm.getListeners();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ default void removeListener(Object listener) {

/**
* @return a set of all listeners registered on this component.
*
* @deprecated Since 10.0, with no replacement
*/
@Deprecated
Set<Object> getListeners();
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return delegate.removeListenerAsync(listener);
}

@Deprecated
@Override
public Set<Object> getListeners() {
authzManager.checkPermission(subject, AuthorizationPermission.LISTEN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ public CompletionStage<Void> removeListenerAsync(Object listener) {
return null;
}

@Deprecated
@Override
public Set<Object> getListeners() {
return null; // TODO: Customise this generated block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public CompletableFuture<MetadataValue<V>> getWithMetadataAsync(K key) {
return delegate.getWithMetadataAsync(key);
}

@Deprecated
@Override
public Set<Object> getListeners() {
return delegate.getListeners();
Expand Down