public class AgentBuilder
extends java.lang.Object
| Constructor and Description |
|---|
AgentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Agent |
build()
Create an instance of [Agent] with the information from this builder.
|
AgentBuilder |
identity(Identity identity) |
AgentBuilder |
ingresExpiry(java.time.Duration duration)
Provides a _default_ ingress expiry.
|
AgentBuilder |
nonceFactory(NonceFactory nonceFactory) |
AgentBuilder |
transport(ReplicaTransport transport) |
public Agent build()
public AgentBuilder transport(ReplicaTransport transport)
public AgentBuilder ingresExpiry(java.time.Duration duration)
duration - default ingress expirypublic AgentBuilder identity(Identity identity)
public AgentBuilder nonceFactory(NonceFactory nonceFactory)