Class: VectorMCP::Transport::HttpStream::StreamHandler::StreamingConnection Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/vector_mcp/transport/http_stream/stream_handler.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Streaming connection data structure

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#closedObject

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def closed
  @closed
end

#sessionObject

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def session
  @session
end

#threadObject

Returns the value of attribute thread

Returns:

  • (Object)

    the current value of thread



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def thread
  @thread
end

#yielderObject

Returns the value of attribute yielder

Returns:

  • (Object)

    the current value of yielder



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def yielder
  @yielder
end

Instance Method Details

#closeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



22
23
24
25
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 22

def close
  self.closed = true
  thread&.kill
end

#closed?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


27
28
29
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 27

def closed?
  closed
end