Interface InstanceConnectionService.InstanceBinding
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
JeroMQInstanceBinding
- Enclosing interface:
InstanceConnectionService
Represents a binding. The binding is managed by the
InstanceConnectionService. Wen opening a binding,
a node will then bind on the provided address. The InstanceConnectionService will accept connections
until the binding is closed.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the binding.Returns the host address to which to bind when receiving incoming data.Gets theNodeIdthisInstanceConnectionService.InstanceBindingrepresents.
-
Method Details
-
getNodeId
NodeId getNodeId()Gets theNodeIdthisInstanceConnectionService.InstanceBindingrepresents.- Returns:
- the
NodeId
-
getBindAddress
String getBindAddress()Returns the host address to which to bind when receiving incoming data.- Returns:
- the bind address
-
close
void close()Closes the binding.- Specified by:
closein interfaceAutoCloseable
-