Package io.muserver

Class AsyncContext

  • All Implemented Interfaces:
    ResponseInfo

    @Deprecated
    public class AsyncContext
    extends java.lang.Object
    implements ResponseInfo
    Deprecated.
    This interface is no longer used. Instead call MuRequest.handleAsync() from a standard Mu Handler.
    • Constructor Detail

      • AsyncContext

        public AsyncContext()
        Deprecated.
    • Method Detail

      • complete

        @Deprecated
        public java.util.concurrent.Future<java.lang.Void> complete​(boolean forceDisconnect)
        Deprecated.
        Parameters:
        forceDisconnect - true to disconnect
        Returns:
        a future
      • duration

        @Deprecated
        public long duration()
        Deprecated.
        Description copied from interface: ResponseInfo
        The duration in millis of a completed response, or the duration so far of an in-progress request.
        Specified by:
        duration in interface ResponseInfo
        Returns:
        the number of milliseconds from the start of the request until the end of the response.
      • completedSuccessfully

        @Deprecated
        public boolean completedSuccessfully()
        Deprecated.
        Description copied from interface: ResponseInfo
        Indicates whether or not a response completed successfully. Non-successful completion may be due to events such as the client disconnecting early, or a response timing out.

        Note: even server errors such as a 500 are considered "successful" if the full response was sent to the client.

        Specified by:
        completedSuccessfully in interface ResponseInfo
        Returns:
        Returns true if the request was fully read and the response was fully sent to the client.