public static enum SecretLeaseEventPublisher.LoggingErrorListener extends Enum<SecretLeaseEventPublisher.LoggingErrorListener> implements LeaseErrorListener
LeaseErrorListener
implementation to log errors.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
onLeaseError(SecretLeaseEvent leaseEvent,
Exception exception)
Callback for a
SecretLeaseEvent |
static SecretLeaseEventPublisher.LoggingErrorListener |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretLeaseEventPublisher.LoggingErrorListener[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretLeaseEventPublisher.LoggingErrorListener INSTANCE
public static SecretLeaseEventPublisher.LoggingErrorListener[] values()
for (SecretLeaseEventPublisher.LoggingErrorListener c : SecretLeaseEventPublisher.LoggingErrorListener.values()) System.out.println(c);
public static SecretLeaseEventPublisher.LoggingErrorListener valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic 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–2018 Pivotal Software, Inc.. All rights reserved.