Class SharedService

    • Constructor Detail

      • SharedService

        public SharedService()
      • SharedService

        public SharedService​(java.lang.String lookupName)
    • Method Detail

      • init

        public void init()
                  throws CoreException
        Description copied from interface: ComponentLifecycle
        Initialises the component.

        Component initialisation includes config verification, creation of connections etc.

        Throws:
        CoreException - wrapping any underlying Exceptions
      • start

        public void start()
                   throws CoreException
        Description copied from interface: ComponentLifecycle
        Starts the component.

        Once a component is started it should be ready to process messages. In the case of AdaptrisMessageConsumer, calling start will begin message delivery.

        Throws:
        CoreException - wrapping any underlying Exceptions
      • stop

        public void stop()
        Description copied from interface: ComponentLifecycle
        Stop the component

        A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer, calling stop will pause message delivery. Throwing a RuntimeException may cause unintended consequences

      • close

        public void close()
        Description copied from interface: ComponentLifecycle
        Closes the component.

        A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException may cause unintended consequences

      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException
        Description copied from interface: Service

        Apply the service to the message.

        Parameters:
        msg - the AdaptrisMessage to process
        Throws:
        ServiceException - wrapping any underlying Exceptions
      • isBranching

        public boolean isBranching()
        Description copied from interface: Service

        Returns true if the implementation supports branching.

        Returns:
        true if the implementation supports branching
        See Also:
        BranchingServiceCollection
      • getCloneService

        public java.lang.Boolean getCloneService()
      • setCloneService

        public void setCloneService​(java.lang.Boolean cloneService)
      • setLookupName

        public void setLookupName​(java.lang.String lookupName)
        Set the name of the service that will be looked up from SharedComponentList.getServices(),