public static final class EJBClientConnection.Builder extends Object
Constructor and Description |
---|
Builder()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
EJBClientConnection |
build()
Build a new
EJBClientConnection instance based on the current contents of this builder. |
EJBClientConnection.Builder |
setDestination(URI destination)
Set the destination URI.
|
EJBClientConnection.Builder |
setForDiscovery(boolean forDiscovery)
Set whether this connection should be used for discovery (defaults to
true ). |
public EJBClientConnection.Builder setDestination(URI destination)
destination
- the destination URI (must not be null
)public EJBClientConnection.Builder setForDiscovery(boolean forDiscovery)
true
).forDiscovery
- true
to use this connection for discovery, false
otherwisepublic EJBClientConnection build()
EJBClientConnection
instance based on the current contents of this builder.null
)Copyright © 2017 JBoss by Red Hat. All rights reserved.