Package io.muserver
Class AsyncContext
- java.lang.Object
-
- io.muserver.AsyncContext
-
- All Implemented Interfaces:
ResponseInfo
@Deprecated public class AsyncContext extends java.lang.Object implements ResponseInfo
Deprecated.This interface is no longer used. Instead callMuRequest.handleAsync()
from a standard Mu Handler.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
state
Deprecated.UseMuRequest.attribute(String)
instead.
-
Constructor Summary
Constructors Constructor Description AsyncContext()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.concurrent.Future<java.lang.Void>
complete(boolean forceDisconnect)
Deprecated.boolean
completedSuccessfully()
Deprecated.long
duration()
Deprecated.MuRequest
request()
Deprecated.MuResponse
response()
Deprecated.
-
-
-
Field Detail
-
state
@Deprecated public java.lang.Object state
Deprecated.UseMuRequest.attribute(String)
instead.
-
-
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 interfaceResponseInfo
- 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 interfaceResponseInfo
- Returns:
- Returns true if the request was fully read and the response was fully sent to the client.
-
request
@Deprecated public MuRequest request()
Deprecated.- Specified by:
request
in interfaceResponseInfo
- Returns:
- The request
-
response
@Deprecated public MuResponse response()
Deprecated.- Specified by:
response
in interfaceResponseInfo
- Returns:
- The response
-
-