Class ServiceInputConnectionProxy

    • 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

      • ServiceInputConnectionProxy

        public ServiceInputConnectionProxy()
    • Method Detail

      • 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.
      • read

        public int read​(byte[] buffer)
        Description copied from interface: IInputConnection
        Non-blocking read. Tries to fill the buffer from the stream.
        Specified by:
        read in interface IInputConnection
        Parameters:
        buffer - The buffer to read in.
        Returns:
        The number of bytes that could be read into the buffer.
      • read

        public int read()
        Description copied from interface: IInputConnection
        Non-blocking read. Tries to read the next byte.
        Specified by:
        read in interface IInputConnection
        Returns:
        The next byte or -1 if the end of the stream has been reached.
      • available

        public int available()
        Get the number of available bytes.
        Specified by:
        available in interface IInputConnection
        Returns:
        The number of available bytes.
      • close

        public void close()
        Description copied from interface: IConnection
        Close the connection.
        Specified by:
        close in interface IConnection
      • writeToOutputStream

        public ISubscriptionIntermediateFuture<java.lang.Long> writeToOutputStream​(java.io.OutputStream os,
                                                                                   IExternalAccess component)
        Read all data from output stream to the connection. The result is an intermediate future that reports back the size that was read. It can also be used to terminate reading.
        Specified by:
        writeToOutputStream in interface IInputConnection
        Parameters:
        is - The input stream.
        component - The component.