Class LeaseListenerAdapter
java.lang.Object
org.springframework.vault.core.lease.event.LeaseListenerAdapter
- All Implemented Interfaces:
LeaseErrorListener,LeaseListener
public abstract class LeaseListenerAdapter
extends Object
implements LeaseListener, LeaseErrorListener
Empty listener adapter implementing
LeaseListener and
LeaseErrorListener. Typically used to facilitate interface evolution.- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonLeaseError(SecretLeaseEvent leaseEvent, Exception exception) Callback for aSecretLeaseEvent.voidonLeaseEvent(SecretLeaseEvent leaseEvent) Callback for aSecretLeaseEvent
-
Constructor Details
-
LeaseListenerAdapter
public LeaseListenerAdapter()
-
-
Method Details
-
onLeaseEvent
Description copied from interface:LeaseListenerCallback for aSecretLeaseEvent- Specified by:
onLeaseEventin interfaceLeaseListener- Parameters:
leaseEvent- the event object, must not be null.
-
onLeaseError
Description copied from interface:LeaseErrorListenerCallback for aSecretLeaseEvent.- Specified by:
onLeaseErrorin interfaceLeaseErrorListener- Parameters:
leaseEvent- the event object, must not be null.exception- the thrownException.
-