Package org.jcsp.lang

Class SharedAltingConnectionClient

    • Method Detail

      • claim

        protected final void claim()
        Description copied from class: AltingConnectionClientImpl
        This claims a lock on the client. This implementation does nothing as instances of this class are only meant to be used with One2?Connection objects.
        Overrides:
        claim in class AltingConnectionClientImpl
      • release

        protected final void release()
        Description copied from class: AltingConnectionClientImpl
        This releases a lock on the client. This implementation does nothing as instances of this class are only meant to be used with One2?Connection objects.
        Overrides:
        release in class AltingConnectionClientImpl
      • duplicate

        public SharedConnectionClient duplicate()

        Returns a SharedConnectionClient object that is a duplicate of the object on which this method is called.

        This allows a process using a SharedAltingConnectionClient object to pass references to the connection client to multiple processes.

        The object returned can be cast into a SharedConnectionClient object.

        Specified by:
        duplicate in interface SharedConnectionClient
        Returns:
        a duplicate SharedAltingConnectionClient object.