Module swim.actor
Package swim.actor

Class ActorPartDef

  • All Implemented Interfaces:
    swim.codec.Debug, swim.runtime.CellDef, swim.runtime.PartDef

    public class ActorPartDef
    extends Object
    implements swim.runtime.PartDef, swim.codec.Debug
    • Constructor Detail

      • ActorPartDef

        public ActorPartDef​(swim.structure.Value partKey,
                            swim.runtime.PartPredicate predicate,
                            boolean isGateway,
                            swim.uri.UriMapper<swim.runtime.HostDef> hostDefs,
                            swim.uri.UriMapper<swim.runtime.NodeDef> nodeDefs,
                            swim.uri.UriMapper<swim.runtime.LaneDef> laneDefs,
                            swim.runtime.LogDef logDef,
                            swim.runtime.PolicyDef policyDef,
                            swim.concurrent.StageDef stageDef,
                            swim.store.StoreDef storeDef)
    • Method Detail

      • fromPartPredicate

        public static ActorPartDef fromPartPredicate​(swim.structure.Value partKey,
                                                     swim.runtime.PartPredicate predicate)
      • partKey

        public final swim.structure.Value partKey()
        Specified by:
        partKey in interface swim.runtime.PartDef
      • partKey

        public ActorPartDef partKey​(swim.structure.Value partKey)
      • predicate

        public final swim.runtime.PartPredicate predicate()
        Specified by:
        predicate in interface swim.runtime.PartDef
      • predicate

        public ActorPartDef predicate​(swim.runtime.PartPredicate predicate)
      • isGateway

        public final boolean isGateway()
        Specified by:
        isGateway in interface swim.runtime.PartDef
      • isGateway

        public ActorPartDef isGateway​(boolean isGateway)
      • hostDefs

        public final Collection<? extends swim.runtime.HostDef> hostDefs()
        Specified by:
        hostDefs in interface swim.runtime.PartDef
      • getHostDef

        public final swim.runtime.HostDef getHostDef​(swim.uri.Uri hostUri)
        Specified by:
        getHostDef in interface swim.runtime.PartDef
      • hostDef

        public ActorPartDef hostDef​(swim.runtime.HostDef hostDef)
      • nodeDefs

        public final Collection<? extends swim.runtime.NodeDef> nodeDefs()
        Specified by:
        nodeDefs in interface swim.runtime.PartDef
      • getNodeDef

        public final swim.runtime.NodeDef getNodeDef​(swim.uri.Uri nodeUri)
        Specified by:
        getNodeDef in interface swim.runtime.PartDef
      • nodeDef

        public ActorPartDef nodeDef​(swim.runtime.NodeDef nodeDef)
      • laneDefs

        public final Collection<? extends swim.runtime.LaneDef> laneDefs()
        Specified by:
        laneDefs in interface swim.runtime.PartDef
      • getLaneDef

        public final swim.runtime.LaneDef getLaneDef​(swim.uri.Uri laneUri)
        Specified by:
        getLaneDef in interface swim.runtime.PartDef
      • laneDef

        public ActorPartDef laneDef​(swim.runtime.LaneDef laneDef)
      • logDef

        public final swim.runtime.LogDef logDef()
        Specified by:
        logDef in interface swim.runtime.CellDef
      • logDef

        public ActorPartDef logDef​(swim.runtime.LogDef logDef)
      • policyDef

        public final swim.runtime.PolicyDef policyDef()
        Specified by:
        policyDef in interface swim.runtime.CellDef
      • policyDef

        public ActorPartDef policyDef​(swim.runtime.PolicyDef policyDef)
      • stageDef

        public final swim.concurrent.StageDef stageDef()
        Specified by:
        stageDef in interface swim.runtime.CellDef
      • stageDef

        public ActorPartDef stageDef​(swim.concurrent.StageDef stageDef)
      • storeDef

        public final swim.store.StoreDef storeDef()
        Specified by:
        storeDef in interface swim.runtime.CellDef
      • storeDef

        public ActorPartDef storeDef​(swim.store.StoreDef storeDef)
      • copy

        protected ActorPartDef copy​(swim.structure.Value partKey,
                                    swim.runtime.PartPredicate predicate,
                                    boolean isGateway,
                                    swim.uri.UriMapper<swim.runtime.HostDef> hostDefs,
                                    swim.uri.UriMapper<swim.runtime.NodeDef> nodeDefs,
                                    swim.uri.UriMapper<swim.runtime.LaneDef> laneDefs,
                                    swim.runtime.LogDef logDef,
                                    swim.runtime.PolicyDef policyDef,
                                    swim.concurrent.StageDef stageDef,
                                    swim.store.StoreDef storeDef)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug