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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLeaseError
(SecretLeaseEvent leaseEvent, Exception exception) Callback for aSecretLeaseEvent
.void
onLeaseEvent
(SecretLeaseEvent leaseEvent) Callback for aSecretLeaseEvent
-
Constructor Details
-
LeaseListenerAdapter
public LeaseListenerAdapter()
-
-
Method Details
-
onLeaseEvent
Description copied from interface:LeaseListener
Callback for aSecretLeaseEvent
- Specified by:
onLeaseEvent
in interfaceLeaseListener
- Parameters:
leaseEvent
- the event object, must not be null.
-
onLeaseError
Description copied from interface:LeaseErrorListener
Callback for aSecretLeaseEvent
.- Specified by:
onLeaseError
in interfaceLeaseErrorListener
- Parameters:
leaseEvent
- the event object, must not be null.exception
- the thrownException
.
-