Liking cljdoc? Tell your friends :D

proletarian.protocols


JobIdStrategycljprotocol

Strategy for generating and handling job IDs. Supports both app-generated IDs (like UUID, ULID) and database-generated IDs (like BIGSERIAL).

Strategy for generating and handling job IDs. Supports both app-generated
IDs (like UUID, ULID) and database-generated IDs (like BIGSERIAL).

decode-idclj

(decode-id _ job-id)

Decode the job ID after reading from the database. Transforms the database representation back to the application representation.

Decode the job ID after reading from the database. Transforms the database
representation back to the application representation.

encode-idclj

(encode-id _ job-id)

Encode the job ID for database storage. For app-generated IDs, this may transform the ID for the specific database. For DB-generated IDs, this receives nil and returns nil.

Encode the job ID for database storage. For app-generated IDs, this may
transform the ID for the specific database. For DB-generated IDs, this
receives nil and returns nil.

generate-idclj

(generate-id _)

Generate a new job ID for enqueueing. Returns nil if the database should generate the ID (e.g., BIGSERIAL). Returns a value (e.g., UUID) if the application generates the ID.

Generate a new job ID for enqueueing. Returns nil if the database should
generate the ID (e.g., BIGSERIAL). Returns a value (e.g., UUID) if the
application generates the ID.
sourceraw docstring

QueueWorkercljprotocol

The process that runs the job workers for a particular queue.

The process that runs the job workers for a particular queue.

start!clj

(start! _)

Sets up a thread pool and starts polling for jobs.

Sets up a thread pool and starts polling for jobs.

stop!clj

(stop! _)

Shuts down the job workers and the thread pool. Will allow running jobs to complete before shutting down the thread pool.

Shuts down the job workers and the thread pool. Will allow running jobs
to complete before shutting down the thread pool.
sourceraw docstring

Serializercljprotocol

The Serializer encodes and decodes the job data payload as it is written to and read from the database tables.

The Serializer encodes and decodes the job data payload as it is written to
and read from the database tables.

decodeclj

(decode _ data-string)

Decode the data-as-string after reading.

Decode the data-as-string after reading.

encodeclj

(encode _ data)

Encode the data as a string before writing.

Encode the data as a string before writing.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close