Class ValueProxyTimeout<T>

  • All Implemented Interfaces:
    Value<T>, io.aether.utils.ToString

    public class ValueProxyTimeout<T>
    extends ValueProxy<T>
    • Constructor Detail

      • ValueProxyTimeout

        public ValueProxyTimeout​(Value<T> self,
                                 long time)
    • Method Detail

      • reject

        public void reject​(java.lang.Object owner,
                           long blockId)
        Description copied from interface: Value
        Rejects the value sending process due to a stream being blocked.
        Specified by:
        reject in interface Value<T>
        Overrides:
        reject in class ValueProxy<T>
        Parameters:
        owner - An object that provides information about the current state of the block.

        When the creator of the Value object receives an reject call, it understands that the stream is currently blocked and data cannot be sent at this moment.

        If, at the same time, a Value object with the isRequestData flag arrives from the stream, a race condition can occur. To resolve this issue, the checkWritable method should be called to determine the actual state of the remote node.

      • success

        public void success​(java.lang.Object owner)
        Description copied from interface: Value
        Releases resources associated with this value when it's no longer needed. This is the normal end-of-life operation for a value.
        Specified by:
        success in interface Value<T>
        Overrides:
        success in class ValueProxy<T>
        Parameters:
        owner - The object initiating the success operation (for tracking/logging)
      • enter

        public void enter​(java.lang.Object owner)
        Description copied from interface: Value
        Marks the beginning of value processing by a handler. Called when a processor starts working with this value.
        Specified by:
        enter in interface Value<T>
        Overrides:
        enter in class ValueProxy<T>
        Parameters:
        owner - The object that begins processing this value