IC4J API Docs
  • Overview
    • Introduction
  • Quick Start
  • License
  • Reference
    • API Reference
      • Install IC4J Libraries
      • Supported Types
      • ReplicaTransport
      • Identity
      • Principal
      • AgentBuilder
      • ProxyBuilder
      • Using IDLArgs
      • QueryBuilder and UpdateBuilder
      • Using Raw Agent Methods
      • Handle Binary Payloads
      • Object Serializers and Deserializers
        • Pojo Serializer and Deserializer
        • JSON Jackson Serializer and Deserializer
        • JSON Gson Serializer and Deserializer
        • XML DOM Serializer and Deserializer
        • XML JAXB Serializer and Deserializer
        • JDBC Serializer
      • Android Development
Powered by GitBook
On this page
  1. Reference
  2. API Reference

AgentBuilder

PreviousPrincipalNextProxyBuilder

Last updated 1 year ago

To create an Java object the build method is used.

1) Use transport method passing parameter.

new AgentBuilder().transport(replicaTransport);

2) Use identity method passing 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 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();
Agent
AgentBuilder
ReplicaTransport
Identity
Duration