public abstract static class LinkFactory.Builder
extends java.lang.Object
Builder class provides an abstract method which
should be implemented to take a NodeAddressID object
which should be used to construct a Link which is then
returned by the method to the factory.| Constructor and Description |
|---|
Builder(ProtocolID protocolID)
A constructor which takes the
ProtocolID identifying the
protocol that this Builder supports. |
| Modifier and Type | Method and Description |
|---|---|
ProtocolID |
getProtocolID()
Gets the
ProtocolID that this Builder supports. |
abstract Link |
testAndBuild(NodeAddressID addressID)
Takes a
NodeAddressID and constructs and returns
a Link object. |
public Builder(ProtocolID protocolID)
ProtocolID identifying the
protocol that this Builder supports. This must be called
by sub-classes.protocolID - the ProtocolID for the protocol that the implementation supports.public abstract Link testAndBuild(NodeAddressID addressID) throws java.lang.IllegalArgumentException
NodeAddressID and constructs and returns
a Link object.addressID - the AddressID for the remote Node.Link.java.lang.IllegalArgumentException - if the AddressID object is invalid.public final ProtocolID getProtocolID()
ProtocolID that this Builder supports.ProtocolID that this Builder supports.Copyright © 1996–2022. All rights reserved.