public class ProtonTransportOptions extends Object
Constructor and Description |
---|
ProtonTransportOptions() |
ProtonTransportOptions(JsonObject json)
Create options from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getHeartbeat()
Returns the heart beat as maximum delay between sending frames for the remote peers.
|
int |
getMaxFrameSize()
Gets the maximum frame size for the connection.
|
int |
hashCode() |
ProtonTransportOptions |
setHeartbeat(int heartbeat)
Set the heart beat as maximum delay between sending frames for the remote peers.
|
ProtonTransportOptions |
setMaxFrameSize(int maxFrameSize)
Sets the maximum frame size for the connection.
|
JsonObject |
toJson()
Convert to JSON
|
public ProtonTransportOptions()
public ProtonTransportOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public ProtonTransportOptions setHeartbeat(int heartbeat)
heartbeat
- The maximum delay in milliseconds.public int getHeartbeat()
public ProtonTransportOptions setMaxFrameSize(int maxFrameSize)
If this property is not set explicitly, a reasonable default value is used.
Setting this property to a negative value will result in no maximum frame size being announced at all.
maxFrameSize
- The frame size in bytes.public int getMaxFrameSize()
If this property is not set explicitly, a reasonable default value is used.
Copyright © 2020 Eclipse. All rights reserved.