Interface RequestContext<T>
- All Superinterfaces:
AutoCloseable
,RequestFutureContext<T>
- All Known Implementing Classes:
AbstractRequestContext
Request context handles all requests on device. Number of requests is limited by request quota. When this quota is
exceeded all rpc's will end up with exception.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
Returns request timeout value.@Nullable Xid
getXid()
Returns XID generated for this request.void
setWaitTimeout
(long waitTimeout) Sets request timeout value.Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.RequestFutureContext
getFuture, setResult
-
Method Details
-
getXid
@Nullable Xid getXid()Returns XID generated for this request.- Returns:
- Allocated XID, or null if the device has disconnected.
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-
getWaitTimeout
long getWaitTimeout()Returns request timeout value.- Returns:
- timeout
-
setWaitTimeout
void setWaitTimeout(long waitTimeout) Sets request timeout value.
-