Fix Javadoc example code in SecretLeaseContainer.
Original pull request: gh-209. Closes gh-207.
This commit is contained in:
committed by
Mark Paluch
parent
087d665c39
commit
a188ff1234
@@ -73,15 +73,15 @@ import org.springframework.web.client.HttpStatusCodeException;
|
||||
* .requestRotatingSecret("mysql/creds/my-role");
|
||||
* container.addLeaseListener(new LeaseListenerAdapter() {
|
||||
* @Override
|
||||
* public void onLeaseEvent(LeaseEvent leaseEvent) {
|
||||
* public void onLeaseEvent(SecretLeaseEvent secretLeaseEvent) {
|
||||
*
|
||||
* if (requestedSecret == leaseEvent.getSource()) {
|
||||
* if (requestedSecret == secretLeaseEvent.getSource()) {
|
||||
*
|
||||
* if (leaseEvent instanceof LeaseCreatedEvent) {
|
||||
* if (secretLeaseEvent instanceof SecretLeaseCreatedEvent) {
|
||||
*
|
||||
* }
|
||||
*
|
||||
* if (leaseEvent instanceof LeaseExpiredEvent) {
|
||||
* if (secretLeaseEvent instanceof SecretLeaseExpiredEvent) {
|
||||
*
|
||||
* }
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user