JBoss EJB client 2.0.0.Beta4

org.jboss.ejb.client
Interface EJBClientConfiguration.CommonConnectionCreationConfiguration

All Known Subinterfaces:
EJBClientConfiguration.ClusterConfiguration, EJBClientConfiguration.ClusterNodeConfiguration, EJBClientConfiguration.RemotingConnectionConfiguration
Enclosing interface:
EJBClientConfiguration

public static interface EJBClientConfiguration.CommonConnectionCreationConfiguration

Holds the common configurations that are required for connection creation


Method Summary
 CallbackHandler getCallbackHandler()
          Returns the CallbackHandler that will be used during connection creation.
 org.xnio.OptionMap getChannelCreationOptions()
          Returns the options that will be used during creation of a Channel for the connection
 org.xnio.OptionMap getConnectionCreationOptions()
          Returns the options that will be used during connection creation.
 long getConnectionTimeout()
          Returns the connection timeout in milliseconds, that will be used during connection creation
 boolean isConnectEagerly()
          If this method returns true, then the EJB client API will try and connect to the destination host "eagerly".
 

Method Detail

getConnectionCreationOptions

org.xnio.OptionMap getConnectionCreationOptions()
Returns the options that will be used during connection creation. This method must not return null

Returns:

getCallbackHandler

CallbackHandler getCallbackHandler()
Returns the CallbackHandler that will be used during connection creation. This method must not return null

Returns:

getConnectionTimeout

long getConnectionTimeout()
Returns the connection timeout in milliseconds, that will be used during connection creation

Returns:

getChannelCreationOptions

org.xnio.OptionMap getChannelCreationOptions()
Returns the options that will be used during creation of a Channel for the connection

Returns:

isConnectEagerly

boolean isConnectEagerly()
If this method returns true, then the EJB client API will try and connect to the destination host "eagerly". when the EJBClientContext is being created out of the EJBClientConfiguration to which this connection configuration belongs.

On the other hand, if this method returns false, then the EJB client API will try to connect to the destination host only if no other node/EJBReceiver within the EJB client context can handle a EJB invocation request. i.e. it tries to establish the connection lazily/on-demand.

Returns:

JBoss EJB client 2.0.0.Beta4

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.