Module swim.actor
Package swim.actor

Class ActorLane

  • All Implemented Interfaces:
    swim.runtime.CellBinding, swim.runtime.CellContext, swim.runtime.LaneBinding, swim.runtime.LaneContext, swim.runtime.TierBinding, swim.runtime.TierContext, swim.util.Log

    public class ActorLane
    extends ActorTier
    implements swim.runtime.LaneBinding, swim.runtime.LaneContext
    • Constructor Detail

      • ActorLane

        public ActorLane​(swim.runtime.LaneBinding laneBinding,
                         swim.runtime.LaneDef laneDef)
    • Method Detail

      • laneDef

        public final swim.runtime.LaneDef laneDef()
      • actorNode

        public final ActorNode actorNode()
      • node

        public final swim.runtime.NodeBinding node()
        Specified by:
        node in interface swim.runtime.LaneBinding
        Specified by:
        node in interface swim.runtime.LaneContext
      • laneWrapper

        public final swim.runtime.LaneBinding laneWrapper()
        Specified by:
        laneWrapper in interface swim.runtime.LaneBinding
        Specified by:
        laneWrapper in interface swim.runtime.LaneContext
      • laneBinding

        public final swim.runtime.LaneBinding laneBinding()
      • laneContext

        public final swim.runtime.LaneContext laneContext()
        Specified by:
        laneContext in interface swim.runtime.LaneBinding
      • setLaneContext

        public void setLaneContext​(swim.runtime.LaneContext laneContext)
        Specified by:
        setLaneContext in interface swim.runtime.LaneBinding
      • unwrapLane

        public <T> T unwrapLane​(Class<T> laneClass)
        Specified by:
        unwrapLane in interface swim.runtime.LaneBinding
        Specified by:
        unwrapLane in interface swim.runtime.LaneContext
      • bottomLane

        public <T> T bottomLane​(Class<T> laneClass)
        Specified by:
        bottomLane in interface swim.runtime.LaneBinding
        Specified by:
        bottomLane in interface swim.runtime.LaneContext
      • cellBinding

        public final swim.runtime.CellBinding cellBinding()
        Specified by:
        cellBinding in class ActorCell
      • cellContext

        public final swim.runtime.CellContext cellContext()
        Specified by:
        cellContext in class ActorCell
      • cellAddress

        public final swim.runtime.LaneAddress cellAddress()
        Specified by:
        cellAddress in interface swim.runtime.CellContext
        Specified by:
        cellAddress in interface swim.runtime.LaneBinding
        Specified by:
        cellAddress in interface swim.runtime.LaneContext
        Specified by:
        cellAddress in class ActorCell
      • partKey

        public swim.structure.Value partKey()
        Specified by:
        partKey in interface swim.runtime.LaneBinding
        Specified by:
        partKey in interface swim.runtime.LaneContext
      • hostUri

        public swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.runtime.LaneBinding
        Specified by:
        hostUri in interface swim.runtime.LaneContext
      • nodeUri

        public swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.runtime.LaneBinding
        Specified by:
        nodeUri in interface swim.runtime.LaneContext
      • laneUri

        public swim.uri.Uri laneUri()
        Specified by:
        laneUri in interface swim.runtime.LaneBinding
        Specified by:
        laneUri in interface swim.runtime.LaneContext
      • laneType

        public String laneType()
        Specified by:
        laneType in interface swim.runtime.LaneBinding
      • identity

        public swim.api.auth.Identity identity()
        Specified by:
        identity in interface swim.runtime.LaneContext
      • getLaneView

        public swim.api.Lane getLaneView​(swim.api.agent.AgentContext agentContext)
        Specified by:
        getLaneView in interface swim.runtime.LaneBinding
      • openLaneView

        public void openLaneView​(swim.api.Lane lane)
        Specified by:
        openLaneView in interface swim.runtime.LaneBinding
      • closeLaneView

        public void closeLaneView​(swim.api.Lane lane)
        Specified by:
        closeLaneView in interface swim.runtime.LaneBinding
      • isLinked

        public boolean isLinked()
        Specified by:
        isLinked in interface swim.runtime.LaneBinding
      • uplinks

        public swim.collections.FingerTrieSeq<swim.runtime.LinkContext> uplinks()
        Specified by:
        uplinks in interface swim.runtime.LaneBinding
      • getUplink

        public swim.runtime.LinkContext getUplink​(swim.structure.Value linkKey)
        Specified by:
        getUplink in interface swim.runtime.LaneBinding
      • closeUplink

        public void closeUplink​(swim.structure.Value linkKey)
        Specified by:
        closeUplink in interface swim.runtime.LaneBinding
      • pushUpCommand

        public void pushUpCommand​(swim.runtime.Push<swim.warp.CommandMessage> push)
        Specified by:
        pushUpCommand in interface swim.runtime.LaneBinding
      • createLog

        public swim.util.Log createLog​(swim.runtime.LogDef logDef)
      • createLog

        public swim.util.Log createLog​(swim.runtime.CellAddress cellAddress)
      • injectLog

        public swim.util.Log injectLog​(swim.util.Log log)
      • openLog

        protected swim.util.Log openLog()
        Overrides:
        openLog in class ActorCell
      • createPolicy

        public swim.api.policy.Policy createPolicy​(swim.runtime.PolicyDef policyDef)
      • createPolicy

        public swim.api.policy.Policy createPolicy​(swim.runtime.CellAddress cellAddress)
      • injectPolicy

        public swim.api.policy.Policy injectPolicy​(swim.api.policy.Policy policy)
      • openPolicy

        protected swim.api.policy.Policy openPolicy()
        Overrides:
        openPolicy in class ActorCell
      • createStage

        public swim.concurrent.Stage createStage​(swim.concurrent.StageDef stageDef)
      • createStage

        public swim.concurrent.Stage createStage​(swim.runtime.CellAddress cellAddress)
      • injectStage

        public swim.concurrent.Stage injectStage​(swim.concurrent.Stage stage)
      • openStage

        protected swim.concurrent.Stage openStage()
        Overrides:
        openStage in class ActorTier
      • createStore

        public swim.store.StoreBinding createStore​(swim.store.StoreDef storeDef)
      • createStore

        public swim.store.StoreBinding createStore​(swim.runtime.CellAddress cellAddress)
      • injectStore

        public swim.store.StoreBinding injectStore​(swim.store.StoreBinding store)
      • openStore

        protected swim.store.StoreBinding openStore()
        Overrides:
        openStore in class ActorTier
      • openMetaLane

        public void openMetaLane​(swim.runtime.LaneBinding lane,
                                 swim.runtime.NodeBinding metaLane)
        Specified by:
        openMetaLane in interface swim.runtime.LaneBinding
        Specified by:
        openMetaLane in interface swim.runtime.LaneContext
      • openMetaUplink

        public void openMetaUplink​(swim.runtime.LinkBinding uplink,
                                   swim.runtime.NodeBinding metaUplink)
        Specified by:
        openMetaUplink in interface swim.runtime.LaneBinding
        Specified by:
        openMetaUplink in interface swim.runtime.LaneContext
      • openMetaDownlink

        public void openMetaDownlink​(swim.runtime.LinkBinding downlink,
                                     swim.runtime.NodeBinding metaDownlink)
        Specified by:
        openMetaDownlink in interface swim.runtime.CellContext
        Specified by:
        openMetaDownlink in interface swim.runtime.LaneBinding
      • didClose

        public void didClose()
        Specified by:
        didClose in interface swim.runtime.TierBinding
      • didFail

        public void didFail​(Throwable error)
        Specified by:
        didFail in interface swim.runtime.TierBinding