AgentBuilder

To create an Agent Java object the AgentBuilder build method is used.

1) Use transport method passing ReplicaTransport parameter.

new AgentBuilder().transport(replicaTransport);

2) Use identity method passing Identity parameter.

new AgentBuilder().identity(identity)

3) IngresExpiry provides a default ingress expiry. This is the delta that will be applied at the time an update or query is made. Use Java Duration type parameter.

new AgentBuilder().ingresExpiry(Duration.ofSeconds(300));

4) Creation of an Agent object.

Agent agent = new AgentBuilder().transport(replicaTransport)
.identity(identity)
.ingresExpiry(Duration.ofSeconds(300))
.build();

Last updated