public class NamingStoreCache extends Object
Constructor and Description |
---|
NamingStoreCache() |
Modifier and Type | Method and Description |
---|---|
RemoteNamingStore |
getRemoteNamingStore(org.jboss.remoting3.Endpoint clientEndpoint,
URI connectionURI,
org.xnio.OptionMap connectOptions,
CallbackHandler callbackHandler,
long connectionTimeout,
org.xnio.OptionMap channelCreationOptions,
long channelCreationTimeoutInMillis,
Hashtable<String,Object> env,
List<RemoteContext.CloseTask> contextCloseTasks)
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(org.jboss.remoting3.Endpoint clientEndpoint, URI connectionURI, org.xnio.OptionMap connectOptions, CallbackHandler callbackHandler, long connectionTimeout, org.xnio.OptionMap channelCreationOptions, long channelCreationTimeoutInMillis, Hashtable<String,Object> env, List<RemoteContext.CloseTask> contextCloseTasks) throws IOException, NamingException
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 connectionconnectionURI
- The connection URIconnectOptions
- 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 closedIOException
NamingException
public void release(org.jboss.naming.remote.client.NamingStoreCache.CacheKey connectionHash, boolean async)
public void shutdown()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.