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

    Modifier and Type
    Method
    Description
    void
     
    long
    Returns request timeout value.
    @Nullable Xid
    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 interface AutoCloseable
    • getWaitTimeout

      long getWaitTimeout()
      Returns request timeout value.
      Returns:
      timeout
    • setWaitTimeout

      void setWaitTimeout(long waitTimeout)
      Sets request timeout value.