public class NamingStoreCache extends Object
| Constructor and Description |
|---|
NamingStoreCache() |
| Modifier and Type | Method and Description |
|---|---|
RemoteNamingStore |
getRemoteNamingStore(Endpoint clientEndpoint,
String connectionURL,
OptionMap connectOptions,
CallbackHandler callbackHandler,
long connectionTimeout,
OptionMap channelCreationOptions,
long channelCreationTimeoutInMillis,
List<RemoteContext.CloseTask> contextCloseTasks,
boolean randomServer)
Returns a
Channel for the passed connection properties. |
void |
release(org.jboss.naming.remote.client.NamingStoreCache.CacheKey connectionHash,
boolean async) |
void |
shutdown() |
public RemoteNamingStore getRemoteNamingStore(Endpoint clientEndpoint, String connectionURL, OptionMap connectOptions, CallbackHandler callbackHandler, long connectionTimeout, OptionMap channelCreationOptions, long channelCreationTimeoutInMillis, List<RemoteContext.CloseTask> contextCloseTasks, boolean randomServer) throws IOException, NamingException, URISyntaxException
Channel for the passed connection properties. If the connection is already created
and cached for the passed connection properties, then the cached channel will be returned. Else a new
connection and channel will be created and that new channel returned.clientEndpoint - The Endpoint that will be used to open a connectionconnectionURL - The connection URLconnectOptions - The options to be used for connection creationcallbackHandler - The callback handler to be used for connection creationconnectionTimeout - The connection timeout in milli seconds that will be used while creating a connectionchannelCreationOptions - The options that will be used if/when the channel is createdchannelCreationTimeoutInMillis - The timeout in milli seconds, that will be used while opening a channelcontextCloseTasks - The tasks to be performed when the context is closedIOExceptionNamingExceptionURISyntaxExceptionpublic void release(org.jboss.naming.remote.client.NamingStoreCache.CacheKey connectionHash,
boolean async)
public void shutdown()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.