public class SocketBinding extends Object
Defines a named inbound normal or multicast socket-binding.
Inbound socket-bindings are used to define open ports for functionality such as HTTP listeners, JGroups multicast groups, etc.
SocketBindingGroup| Constructor and Description | 
|---|
SocketBinding(String name)
Construct a new socket-binding. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
iface()
Retrieve the interface for this binding. 
 | 
SocketBinding | 
iface(String iface)
Set the interface for this binding. 
 | 
String | 
multicastAddress()
Retrieve the multicast address or expression. 
 | 
SocketBinding | 
multicastAddress(String multicastAddress)
Set the multicast address or expression. 
 | 
SocketBinding | 
multicastPort(int port)
Set the multicast port. 
 | 
SocketBinding | 
multicastPort(String port)
Set the multicast port expression. 
 | 
String | 
multicastPortExpression()
Retrieve the multicast port expression. 
 | 
String | 
name()
Retrieve the name of the binding. 
 | 
SocketBinding | 
port(int port)
Set the port. 
 | 
SocketBinding | 
port(String portExpression)
Set the port expression 
 | 
String | 
portExpression()
Retrieve the port expression. 
 | 
public SocketBinding(String name)
name - The name of the binding.public String name()
public SocketBinding iface(String iface)
iface - The name of the interface.public String iface()
public SocketBinding port(int port)
port - The port.public SocketBinding port(String portExpression)
portExpression - The port expression.public String portExpression()
public SocketBinding multicastAddress(String multicastAddress)
multicastAddress - The multicast address or expression.public String multicastAddress()
public SocketBinding multicastPort(int port)
port - The multicast port.public SocketBinding multicastPort(String port)
port - The multicast port expression.public String multicastPortExpression()
Copyright © 2018 JBoss by Red Hat. All rights reserved.