public static final class ResponderLeaseHandler.Impl<T extends LeaseStats> extends Object implements ResponderLeaseHandler
ResponderLeaseHandler.Impl<T extends LeaseStats>None| Constructor and Description |
|---|
Impl(String tag,
ByteBufAllocator allocator,
Function<Optional<T>,Flux<Lease>> leaseSender,
Consumer<Throwable> errorConsumer,
Optional<T> leaseStatsOption) |
| Modifier and Type | Method and Description |
|---|---|
double |
availability() |
Exception |
leaseError() |
Disposable |
send(Consumer<ByteBuf> leaseFrameSender) |
boolean |
useLease() |
public boolean useLease()
useLease in interface ResponderLeaseHandlerpublic Exception leaseError()
leaseError in interface ResponderLeaseHandlerpublic Disposable send(Consumer<ByteBuf> leaseFrameSender)
send in interface ResponderLeaseHandlerpublic double availability()
availability in interface Availability