public class GrizzlyAsyncHttpProviderConfig extends Object implements AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
AsyncHttpProviderConfig
implementation that allows customization
of the Grizzly runtime outside of the scope of what the
AsyncHttpClientConfig
offers.GrizzlyAsyncHttpProviderConfig.Property
Modifier and Type | Class and Description |
---|---|
static class |
GrizzlyAsyncHttpProviderConfig.Property
Grizzly-specific customization properties.
|
Modifier and Type | Field and Description |
---|---|
protected ConnectionPool |
connectionPool |
Constructor and Description |
---|
GrizzlyAsyncHttpProviderConfig() |
Modifier and Type | Method and Description |
---|---|
AsyncHttpProviderConfig |
addProperty(GrizzlyAsyncHttpProviderConfig.Property name,
Object value)
Add a property that will be used when the AsyncHttpClient initialize its
AsyncHttpProvider |
ConnectionPool |
getConnectionPool() |
Object |
getProperty(GrizzlyAsyncHttpProviderConfig.Property name)
Return the value associated with the property's name
|
Set<Map.Entry<GrizzlyAsyncHttpProviderConfig.Property,Object>> |
propertiesSet()
Return the curent entry set.
|
Object |
removeProperty(GrizzlyAsyncHttpProviderConfig.Property name)
Remove the value associated with the property's name
|
void |
setConnectionPool(ConnectionPool connectionPool) |
protected ConnectionPool connectionPool
public AsyncHttpProviderConfig addProperty(GrizzlyAsyncHttpProviderConfig.Property name, Object value)
AsyncHttpProviderConfig
AsyncHttpProvider
addProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
name
- the name of the propertyvalue
- the value of the propertyIllegalArgumentException
- if the type of the specified value
does not match the expected type of the specified GrizzlyAsyncHttpProviderConfig.Property
.public Object getProperty(GrizzlyAsyncHttpProviderConfig.Property name)
AsyncHttpProviderConfig
getProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public Object removeProperty(GrizzlyAsyncHttpProviderConfig.Property name)
AsyncHttpProviderConfig
removeProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public Set<Map.Entry<GrizzlyAsyncHttpProviderConfig.Property,Object>> propertiesSet()
AsyncHttpProviderConfig
propertiesSet
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public ConnectionPool getConnectionPool()
public void setConnectionPool(ConnectionPool connectionPool)
Copyright © 2014. All Rights Reserved.