Class ServiceOutputConnectionProxy

    • Field Detail

      • conid

        protected int conid
        The connection id.
      • nonfunc

        protected java.util.Map<java.lang.String,​java.lang.Object> nonfunc
        The non-functional properties.
    • Constructor Detail

      • ServiceOutputConnectionProxy

        public ServiceOutputConnectionProxy()
        Create a new connection proxy
      • ServiceOutputConnectionProxy

        public ServiceOutputConnectionProxy​(ServiceInputConnection con)
        Create a new connection proxy
    • Method Detail

      • setInputConnection

        public void setInputConnection​(IInputConnection icon)
      • getConnectionId

        public int getConnectionId()
        Get the connectionid.
        Specified by:
        getConnectionId in interface IConnection
        Returns:
        The connectionid.
      • setConnectionId

        public void setConnectionId​(int conid)
        Set the connectionid.
        Parameters:
        connectionid - The connectionid to set.
      • setInitiator

        public void setInitiator​(IComponentIdentifier initiator)
        Set the initiator.
        Parameters:
        initiator - The initiator to set.
      • setParticipant

        public void setParticipant​(IComponentIdentifier participant)
        Set the participant.
        Parameters:
        participant - The participant to set.
      • getNonFunctionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getNonFunctionalProperties()
        Get the non-functional properties of the connection.
        Specified by:
        getNonFunctionalProperties in interface IConnection
        Returns:
        The properties.
      • setNonFunctionalProperties

        public void setNonFunctionalProperties​(java.util.Map<java.lang.String,​java.lang.Object> nonfunc)
        Set the non-functional properties of the connection.
        Parameters:
        nonfunc - The properties.
      • write

        public IFuture<java.lang.Void> write​(byte[] data)
        Write the content to the stream.
        Specified by:
        write in interface IOutputConnection
        Parameters:
        data - The data.
      • waitForReady

        public IFuture<java.lang.Integer> waitForReady()
        Wait until the connection is ready for the next write.
        Specified by:
        waitForReady in interface IOutputConnection
        Returns:
        Calls future when next data can be written.
      • close

        public void close()
        Close the connection.
        Specified by:
        close in interface IConnection