Uses of Enum Class
ai.badmonkey.agentspaces.api.ad.PeerAdvertisement.PeerRole
Packages that use PeerAdvertisement.PeerRole
Package
Description
The advertisement family: typed, TTL-bearing discovery documents and their signed wrapper (spec §6).
Layer 2 (spec §6): the signature-verifying, TTL-evicting advertisement cache
and local-first discovery with hop-budgeted remote queries.
Leased group membership with SWIM-style probing (spec §5.2).
The peer node and per-group runtimes: the assembly point of Layer 1 (spec §5).
-
Uses of PeerAdvertisement.PeerRole in ai.badmonkey.agentspaces.api.ad
Subclasses with type arguments of type PeerAdvertisement.PeerRole in ai.badmonkey.agentspaces.api.adModifier and TypeClassDescriptionstatic enumOptional topology roles a peer may serve for its group (spec §5.4).Methods in ai.badmonkey.agentspaces.api.ad that return PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionstatic PeerAdvertisement.PeerRoleReturns the enum constant of this class with the specified name.static PeerAdvertisement.PeerRole[]PeerAdvertisement.PeerRole.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in ai.badmonkey.agentspaces.api.ad that return types with arguments of type PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionPeerAdvertisement.roles()Returns the value of therolesrecord component.Constructor parameters in ai.badmonkey.agentspaces.api.ad with type arguments of type PeerAdvertisement.PeerRoleModifierConstructorDescriptionPeerAdvertisement(String id, PeerId issuer, GroupId group, Instant issued, Duration ttl, List<PeerAdvertisement.Endpoint> endpoints, Set<PeerAdvertisement.PeerRole> roles, Map<String, String> resourceHints) Creates an instance of aPeerAdvertisementrecord class. -
Uses of PeerAdvertisement.PeerRole in ai.badmonkey.agentspaces.discovery
Method parameters in ai.badmonkey.agentspaces.discovery with type arguments of type PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionstatic intDiscoveryService.cacheBoundFor(Set<PeerAdvertisement.PeerRole> localRoles) The ad-cache bound for a peer advertising the given roles (spec §5.4).static DiscoveryServiceDiscoveryService.create(GroupRuntime runtime, CborCodec codec, PeerId self, InstantSource clock, Set<PeerAdvertisement.PeerRole> localRoles) Wires discovery into a group runtime with an ad cache sized for the local peer's topology roles (spec §5.4): a peer advertisingPeerAdvertisement.PeerRole.RENDEZVOUSgets a cacheDiscoveryService.RENDEZVOUS_CACHE_MULTIPLIERtimes the default bound, any other peer the default. -
Uses of PeerAdvertisement.PeerRole in ai.badmonkey.agentspaces.peering.membership
Methods in ai.badmonkey.agentspaces.peering.membership that return types with arguments of type PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionGroupMembership.Member.roles()Returns the topology roles the member advertises (spec §5.4).Methods in ai.badmonkey.agentspaces.peering.membership with parameters of type PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionGroupMembership.withRole(PeerAdvertisement.PeerRole role) Returns the members currently advertising a topology role. -
Uses of PeerAdvertisement.PeerRole in ai.badmonkey.agentspaces.peering.node
Method parameters in ai.badmonkey.agentspaces.peering.node with type arguments of type PeerAdvertisement.PeerRoleModifier and TypeMethodDescriptionPeerNode.Builder.roles(Set<PeerAdvertisement.PeerRole> roles) Declares topology roles this peer serves (spec §5.4), advertised in its leased self-advertisement.