Interface OutboundQueueHandler
- All Known Subinterfaces:
OutboundQueueProvider
- All Known Implementing Classes:
OutboundQueueProviderImpl
@Beta
public interface OutboundQueueHandler
Handler of the outbound queue. The queue has a maximum depth assigned when the
handler is registered.
-
Method Summary
Modifier and TypeMethodDescription@NonNull BarrierInput
createBarrierRequest
(@NonNull org.opendaylight.yangtools.yang.common.Uint32 xid) Create a newbarrier
message.void
Invoked whenever the underlying queue is refreshed.
-
Method Details
-
createBarrierRequest
@NonNull BarrierInput createBarrierRequest(@NonNull org.opendaylight.yangtools.yang.common.Uint32 xid) Create a newbarrier
message. This callback is invoked when the queue is being flushed to the switch. The barrier ensures that any outstanding requests are detected as either completed or failed.- Parameters:
xid
- XID for the barrier message- Returns:
- New barrier message.
-
onConnectionQueueChanged
Invoked whenever the underlying queue is refreshed. Implementations should ensure they are talking to the latest queue- Parameters:
queue
- New queue instance, null indicates a shutdown, e.g. the queue is no longer available.
-