public class ReadOnceInputEvent extends Object implements InputEvent
This in
| Constructor and Description |
|---|
ReadOnceInputEvent(InputStream body,
Headers headers,
String callID,
Instant deadline) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
consumeBody(Function<InputStream,T> dest)
Consume the input stream of this event -
This may be done exactly once per event
|
String |
getCallID() |
Instant |
getDeadline() |
Headers |
getHeaders() |
public ReadOnceInputEvent(InputStream body, Headers headers, String callID, Instant deadline)
public <T> T consumeBody(Function<InputStream,T> dest)
consumeBody in interface InputEventdest - a consumer for the bodyIllegalStateException - if the input has been consumedpublic String getCallID()
getCallID in interface InputEventpublic Instant getDeadline()
getDeadline in interface InputEventpublic Headers getHeaders()
getHeaders in interface InputEventpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023. All rights reserved.