C - the resulting connection after calling build().B - the inheriting builder type.public abstract class Builder<C,B extends Builder<C,B>>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract C |
build()
This return an active M-Bus connection.
|
protected abstract TransportLayer |
buildTransportLayer()
Build the TransportLayer with the given settings.
|
protected B |
self() |
B |
setTimeout(int timeout)
Set the connection timeout.
|
public B setTimeout(int timeout)
timeout - a timeout in milliseconds.protected B self()
protected abstract TransportLayer buildTransportLayer() throws java.io.IOException
java.io.IOException - if an I/O exception occurred.public abstract C build() throws java.io.IOException
java.io.IOException - if an I/O exception occurred opening the connection to the remote device.