poolster-plugin-java 0.5.0-alpha.1

Native Java SDK generator for Poolster
Documentation
1
2
3
4
5
6
7
package __PACKAGE__;
import java.time.Duration;
import java.util.Map;
/** Immutable options for a scoped call client; the original client remains unchanged. */
public record ClientCallOptions(Map<String,String> headers,Duration timeout) {
 public ClientCallOptions {headers=headers==null?Map.of():Map.copyOf(headers);if(timeout!=null&&(timeout.isNegative()||timeout.isZero()))throw new IllegalArgumentException("Call timeout must be positive");}
}