public abstract class LeaseListenerAdapter extends Object implements LeaseListener, LeaseErrorListener
LeaseListener
and
LeaseErrorListener
. Typically used to facilitate interface evolution.SecretLeaseEvent
Constructor and Description |
---|
LeaseListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onLeaseError(SecretLeaseEvent leaseEvent,
Exception exception)
Callback for a
SecretLeaseEvent |
void |
onLeaseEvent(SecretLeaseEvent leaseEvent)
Callback for a
SecretLeaseEvent |
public void onLeaseEvent(SecretLeaseEvent leaseEvent)
LeaseListener
SecretLeaseEvent
onLeaseEvent
in interface LeaseListener
leaseEvent
- the event object, must not be null.public void onLeaseError(SecretLeaseEvent leaseEvent, Exception exception)
LeaseErrorListener
SecretLeaseEvent
onLeaseError
in interface LeaseErrorListener
leaseEvent
- the event object, must not be null.exception
- the thrown Exception
.Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.