Enum Class HttpOutput.ApiState

java.lang.Object
java.lang.Enum<HttpOutput.ApiState>
org.eclipse.jetty.server.HttpOutput.ApiState
All Implemented Interfaces:
Serializable, Comparable<HttpOutput.ApiState>, Constable
Enclosing class:
HttpOutput

static enum HttpOutput.ApiState extends Enum<HttpOutput.ApiState>
The API State which combines with the output State:
             OPEN/BLOCKING---last----------------------------+                      CLOSED/BLOCKING
            /   |    ^                                        \                         ^  ^
           /    w    |                                         \                       /   |
          /     |   owc   +--owcL------------------->--owcL-----\---------------------+    |
         |      v    |   /                         /             V                         |
        swl  OPEN/BLOCKED----last---->CLOSE/BLOCKED----owc----->CLOSING/BLOCKED--owcL------+
         |
          \
           \
            V
         +-->OPEN/READY------last---------------------------+
        /    ^    |                                          \
       /    /     w                                           \
      |    /      |       +--owcL------------------->--owcL----\---------------------------+
      |   /       v      /                         /            V                          |
      | irt  OPEN/PENDING----last---->CLOSE/PENDING----owc---->CLOSING/PENDING--owcL----+  |
      |   \  /    |                        |                    ^     |                 |  |
     owc   \/    owc                      irf                  /     irf                |  |
      |    /\     |                        |                  /       |                 |  |
      |   /  \    V                        |                 /        |                 V  V
      | irf  OPEN/ASYNC------last----------|----------------+         |             CLOSED/ASYNC
      |   \                                |                          |                 ^  ^
       \   \                               |                          |                 |  |
        \   \                              |                          |                 |  |
         \   v                             v                          v                 |  |
          +--OPEN/UNREADY----last---->CLOSE/UNREADY----owc----->CLOSING/UNREADY--owcL---+  |
                         \                         \                                       |
                          +--owcL------------------->--owcL--------------------------------+

     swl  : setWriteListener
     w    : write
     owc  : onWriteComplete last == false
     owcL : onWriteComplete last == true
     irf  : isReady() == false
     irt  : isReady() == true
     last : close() or complete(Callback) or write of known last content
    
  • Enum Constant Details

  • Constructor Details

    • ApiState

      private ApiState()
  • Method Details

    • values

      public static HttpOutput.ApiState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpOutput.ApiState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null