public class ResponseAttachmentInputStreamSupport extends Object
| Constructor and Description |
|---|
ResponseAttachmentInputStreamSupport()
For test usage only as it has no facility for closing attached streams.
|
ResponseAttachmentInputStreamSupport(ScheduledExecutorService scheduledExecutorService)
Create a new support with the given timeout for closing unread streams.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
handleDomainOperationResponseStreams(OperationContext context,
org.jboss.dmr.ModelNode responseNode,
List<OperationResponse.StreamEntry> streams)
Deal with streams attached to an operation response from a proxied domain process.
|
void |
shutdown()
Closes any registered stream entries that have not yet been consumed
|
public ResponseAttachmentInputStreamSupport()
public ResponseAttachmentInputStreamSupport(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService - scheduled executor to use to periodically clean up unused streams. Cannot be nullpublic static void handleDomainOperationResponseStreams(OperationContext context, org.jboss.dmr.ModelNode responseNode, List<OperationResponse.StreamEntry> streams)
context - the context of the operationresponseNode - the DMR response from the proxied processstreams - the streams associated with the responsepublic final void shutdown()
Copyright © 2018 JBoss by Red Hat. All rights reserved.