@Beta
public interface OutboundQueue
| Modifier and Type | Method and Description |
|---|---|
void |
commitEntry(Long xid,
OcpHeader message,
com.google.common.util.concurrent.FutureCallback<OcpHeader> callback)
Commit the specified offset using a message.
|
Long |
reserveEntry()
Reserve an entry in the outbound queue.
|
Long reserveEntry()
void commitEntry(@Nonnull Long xid, @Nullable OcpHeader message, @Nullable com.google.common.util.concurrent.FutureCallback<OcpHeader> callback)
FutureCallback.onSuccess(Object) will be invoked
multiple times as the corresponding responses arrive. If the request is completed
with a response, the object reported will be non-null. If the request's completion
is implied by a barrier, the object reported will be null.
If this request fails on the remote device, FutureCallback#onFailure(Throwable)
will be called with an instance of {@link DeviceRequestFailedException}.
If the request fails due to local reasons, {@link FutureCallback#onFailure(Throwable)
will be called with an instance of {@link OutboundQueueException}. In particular, if
this request failed because the device disconnected, {@link OutboundQueueException#DEVICE_DISCONNECTED}
will be reported.xid - Previously-reserved XIDmessage - Message which should be sent out, or null if the reservation
should be cancelled.callback - Callback to be invoked, or null if no callback should be invoked.IllegalArgumentException - if the slot is already committed or was never reserved.Copyright © 2016 OpenDaylight. All rights reserved.