![]() | ![]() | ![]() | read-queued-streaming-block | ![]() |
|
| tag string-stream | [Generic Function] |
Purpose
Reads a queued-streaming block.
Method signatures
(tag t) string-stream
|
Package :gbbopen
Module :streaming
Arguments and values
| tag | An object | |
| string-stream | An input string stream |
Description
read-queued-streaming-block is called when a queued-streaming block
is read; it should not be called directly.
See also
with-queued-streaming
write-streamer-queue
Examples
Write a method that prints the time a queued-streaming block was started
(recorded as the block's tag) when the block is read from a
journal file or network-streamer connection:
(defmethod read-queued-streaming-block :around ((tag integer)
string-stream)
(declare (ignorable string-stream))
(format t "~&;; Reading ~a queued-streaming block...~%"
(full-date-and-time tag))
(call-next-method)
(format t "~&;; Reading queued-streaming block completed.~%"))
Write a method that prints a notice when an empty queued-streaming block
(tagged with the tag :empty) has been read:
(defmethod read-queued-streaming-block :after ((tag (eql ':empty))
string-stream)
(declare (ignorable string-stream))
(format t "~&;; An empty queued-streaming block was read.~%"))
The GBBopen Project
![]() | ![]() | ![]() | read-queued-streaming-block | ![]() |