public static interface ServerEndpoint.ListenHandle
ListenEndpoint.
 A ListenHandle is returned from a successful
 ListenEndpoint.listen invocation to represent the
 listen operation started by that invocation.  This object can
 be used to stop the listen operation and to obtain a
 ListenCookie to identify the listen operation as
 the return value of the ListenContext.addListenEndpoint method.
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Stops listening for requests on the associated
  
ListenEndpoint. | 
ServerEndpoint.ListenCookie | 
getCookie()
Returns a  
ListenCookie to identify the listen
 operation as the return value of the ListenContext.addListenEndpoint method. | 
void close()
ListenEndpoint.
 After this method has returned, no more requests will be
 dispatched to the RequestDispatcher for the
 listen operation represented by this
 ListenHandle, and the listen operation is no
 longer considered active.  This method frees any resources
 associated with the listen operation.
 
Invoking this method terminates any requests that have
 been received because of the listen operation and
 dispatched to the associated RequestDispatcher
 but have not yet had their response output stream closed
 (see InboundRequest.abort);
 subsequent I/O operations on such requests will fail with
 an IOException, except some operations that
 may succeed because they only affect data in local I/O
 buffers.
ServerEndpoint.ListenCookie getCookie()
ListenCookie to identify the listen
 operation as the return value of the ListenContext.addListenEndpoint method.ListenCookie to identify the listen
 operation