Package org.jboss.ejb.client
Class EJBClientConnection.Builder
java.lang.Object
org.jboss.ejb.client.EJBClientConnection.Builder
- Enclosing class:
- EJBClientConnection
A builder for a client connection definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newEJBClientConnectioninstance based on the current contents of this builder.setDestination(URI destination) Set the destination URI.setForDiscovery(boolean forDiscovery) Set whether this connection should be used for discovery (defaults totrue).
-
Constructor Details
-
Builder
public Builder()Construct a new instance.
-
-
Method Details
-
setDestination
Set the destination URI.- Parameters:
destination- the destination URI (must not benull)- Returns:
- this builder
-
setForDiscovery
Set whether this connection should be used for discovery (defaults totrue).- Parameters:
forDiscovery-trueto use this connection for discovery,falseotherwise- Returns:
- this builder
-
build
Build a newEJBClientConnectioninstance based on the current contents of this builder.- Returns:
- the new instance (not
null)
-