Skip to content

Use lambdas for *Listener objects #251

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

Merged
merged 4 commits into from
Feb 27, 2017
Merged

Conversation

acogoluegnes
Copy link
Contributor

A proposal to use lambdas in listeners objects. Some callback
interfaces have been introduced when necessary (not necessary
for e.g. ShutdownListener). Lambdas are wrapped into the original
listener interfaces. Provide a simple test to experiment with the
API.

References #246

A proposal to use lambdas in listeners objects. Some callback
interfaces have been introduced when necessary (not necessary
for e.g. ShutdownListener). Lambdas are wrapped into the original
listener interfaces. Provide a simple test to experiment with the
API.

References #246
@@ -1,4 +1,4 @@
// Copyright (c) 2007-Present Pivotal Software, Inc. All rights reserved.
// Copyright (c) 2007-2017 Pivotal Software, Inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave it as Present.

@michaelklishin
Copy link
Contributor

This looks promising.

@acogoluegnes
Copy link
Contributor Author

@michaelklishin Thanks. Do you see anything to add/change? I was only thinking adding some Javadoc.

@michaelklishin
Copy link
Contributor

michaelklishin commented Feb 27, 2017

Other than the docs we can add a few tests that use lambdas, that's it.

acogoluegnes and others added 2 commits February 27, 2017 17:44
Add functional interfaces for confirm, blocked, and return
listeners.

Fixes #246
@michaelklishin michaelklishin merged commit e55a1f9 into master Feb 27, 2017
@acogoluegnes acogoluegnes deleted the rabbitmq-java-client-246 branch March 21, 2019 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants