|
365 | 365 | ;; For back compatibility (incl. Timbre's Carmine appender)
|
366 | 366 | (enc/defonce ^:dynamic ^:no-doc ^:deprecated *final-freeze-fallback* "Prefer `*freeze-fallback`." nil)
|
367 | 367 | (enc/defonce ^:dynamic *freeze-fallback*
|
368 |
| - "Controls Nippy's behaviour when trying to freeze an item for which Nippy |
369 |
| - doesn't currently have a native freeze/thaw implementation. |
| 368 | + "Controls Nippy's behaviour when trying to freeze an object with a type for |
| 369 | + which Nippy doesn't currently have a native (protocol) implementation. |
370 | 370 |
|
371 | 371 | Possible values:
|
372 | 372 |
|
373 |
| - 1. `nil` (no freeze-fallback, default) |
| 373 | + 1. `nil` (no fallback, default) |
374 | 374 | Tries the following in order:
|
375 |
| - - Freeze with Java's `Serializable` interface if possible |
376 |
| - - Freeze with Clojure's reader if possible |
| 375 | + - Freeze with Java's `Serializable` interface if this seems possible |
| 376 | + - Freeze with Clojure's reader if this seems possible |
377 | 377 | - Throw
|
378 | 378 |
|
379 | 379 | 2. `:write-unfreezable` keyword
|
380 | 380 | Tries the following in order:
|
381 |
| - - Freeze with Java's `Serializable` interface if possible |
382 |
| - - Freeze with Clojure's reader if possible |
| 381 | + - Freeze with Java's `Serializable` interface if this seems possible |
| 382 | + - Freeze with Clojure's reader if this seems possible |
383 | 383 | - Freeze a {:nippy/unfreezable {:type _}} placeholder value
|
384 | 384 |
|
385 |
| - 3. [Advanced] Custom (fn [^java.io.DataOutput out item]) that must |
386 |
| - write exactly one value to the given `DataOutput` stream" |
| 385 | + 3. [Advanced] Custom (fn [^java.io.DataOutput out obj]) that must |
| 386 | + write an appropriate object type id and payload to the given |
| 387 | + `DataOutput` stream." |
387 | 388 |
|
388 | 389 | nil)
|
389 | 390 |
|
|
0 commit comments