Interface RequestContext<T>
-
- All Superinterfaces:
AutoCloseable
,RequestFutureContext<T>
- All Known Implementing Classes:
AbstractRequestContext
public interface RequestContext<T> extends RequestFutureContext<T>, AutoCloseable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
long
getWaitTimeout()
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 Detail
-
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.
-
-