public class StandardHttpContextMap extends AbstractControllerService implements HttpContextMap
| Modifier and Type | Class and Description |
|---|---|
private class |
StandardHttpContextMap.CleanupExpiredRequests |
private static class |
StandardHttpContextMap.Wrapper |
| Modifier and Type | Field and Description |
|---|---|
private ScheduledExecutorService |
executor |
static PropertyDescriptor |
MAX_OUTSTANDING_REQUESTS |
private long |
maxRequestNanos |
private int |
maxSize |
static PropertyDescriptor |
REQUEST_EXPIRATION |
private ConcurrentMap<String,StandardHttpContextMap.Wrapper> |
wrapperMap |
| Constructor and Description |
|---|
StandardHttpContextMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
complete(String identifier) |
javax.servlet.http.HttpServletResponse |
getResponse(String identifier) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onConfigured(ConfigurationContext context) |
boolean |
register(String identifier,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext context) |
getControllerServiceLookup, getIdentifier, getProperties, getProperty, init, initialize, onConfigurationChangecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor MAX_OUTSTANDING_REQUESTS
public static final PropertyDescriptor REQUEST_EXPIRATION
private final ConcurrentMap<String,StandardHttpContextMap.Wrapper> wrapperMap
private volatile int maxSize
private volatile long maxRequestNanos
private volatile ScheduledExecutorService executor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnEnabled public void onConfigured(ConfigurationContext context)
@OnDisabled public void cleanup()
public boolean register(String identifier, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext context)
register in interface HttpContextMappublic javax.servlet.http.HttpServletResponse getResponse(String identifier)
getResponse in interface HttpContextMappublic void complete(String identifier)
complete in interface HttpContextMapCopyright © 2015 Apache NiFi(incubating) Project. All rights reserved.