public class LoggingLoadBalancingClientListener extends io.reactivesocket.events.LoggingClientEventListener implements LoadBalancingClientListener
| Constructor and Description |
|---|
LoggingLoadBalancingClientListener(java.lang.String name,
org.slf4j.event.Level logLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
apertureChanged(int oldAperture,
int newAperture)
An event when the expected number of active sockets held by the load balancer changes.
|
void |
serverAdded(io.reactivesocket.Availability availability)
An event when a server is added to the load balancer.
|
void |
serverRemoved(io.reactivesocket.Availability availability)
An event when a server is removed from the load balancer.
|
void |
socketAdded(io.reactivesocket.Availability availability)
Event when a new socket is added to the load balancer.
|
void |
socketRefreshPeriodChanged(long oldPeriod,
long newPeriod,
java.util.concurrent.TimeUnit periodUnit)
An event when the expected time period for refreshing active sockets in the load balancer changes.
|
void |
socketRemoved(io.reactivesocket.Availability availability)
Event when a socket is removed from the load balancer.
|
void |
socketsRefreshCompleted(long duration,
java.util.concurrent.TimeUnit durationUnit)
An event to mark the end of the socket refresh cycle.
|
void |
socketsRefreshStart()
An event to mark the start of the socket refresh cycle.
|
connectCancelled, connectCompleted, connectFailed, connectStartdispose, errorReceived, errorSent, frameRead, frameWritten, leaseReceived, leaseSent, logIfEnabled, requestReceiveCancelled, requestReceiveComplete, requestReceiveFailed, requestReceiveStart, requestSendCancelled, requestSendComplete, requestSendFailed, requestSendStart, responseReceiveCancelled, responseReceiveComplete, responseReceiveFailed, responseReceiveStart, responseSendCancelled, responseSendComplete, responseSendFailed, responseSendStart, socketClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectCancelled, connectCompleted, connectFailed, connectStartdispose, errorReceived, errorSent, frameRead, frameWritten, leaseReceived, leaseSent, requestReceiveCancelled, requestReceiveComplete, requestReceiveFailed, requestReceiveStart, requestSendCancelled, requestSendComplete, requestSendFailed, requestSendStart, responseReceiveCancelled, responseReceiveComplete, responseReceiveFailed, responseReceiveStart, responseSendCancelled, responseSendComplete, responseSendFailed, responseSendStart, socketClosedpublic LoggingLoadBalancingClientListener(java.lang.String name,
org.slf4j.event.Level logLevel)
public void socketAdded(io.reactivesocket.Availability availability)
LoadBalancingClientListenersocketAdded in interface LoadBalancingClientListeneravailability - Availability for the added socket.public void socketRemoved(io.reactivesocket.Availability availability)
LoadBalancingClientListenersocketRemoved in interface LoadBalancingClientListeneravailability - Availability for the removed socket.public void serverAdded(io.reactivesocket.Availability availability)
LoadBalancingClientListenerserverAdded in interface LoadBalancingClientListeneravailability - Availability of the added server.public void serverRemoved(io.reactivesocket.Availability availability)
LoadBalancingClientListenerserverRemoved in interface LoadBalancingClientListeneravailability - Availability of the removed server.public void apertureChanged(int oldAperture,
int newAperture)
LoadBalancingClientListenerapertureChanged in interface LoadBalancingClientListeneroldAperture - Old aperture size, i.e. expected number of active sockets.newAperture - New aperture size, i.e. expected number of active sockets.public void socketRefreshPeriodChanged(long oldPeriod,
long newPeriod,
java.util.concurrent.TimeUnit periodUnit)
LoadBalancingClientListenersocketRefreshPeriodChanged in interface LoadBalancingClientListeneroldPeriod - Old refresh period.newPeriod - New refresh period.periodUnit - TimeUnit for the refresh period.public void socketsRefreshStart()
LoadBalancingClientListenersocketsRefreshStart in interface LoadBalancingClientListenerpublic void socketsRefreshCompleted(long duration,
java.util.concurrent.TimeUnit durationUnit)
LoadBalancingClientListenersocketsRefreshCompleted in interface LoadBalancingClientListenerduration - Time taken to refresh sockets.durationUnit - TimeUnit for the duration.