MCPcopy Index your code
hub / github.com/ccxt/ccxt / snapshot

Method snapshot

java/lib/src/main/java/io/github/ccxt/ws/ArrayCache.java:38–40  ·  view source on GitHub ↗

Stable snapshot for readers — taken under the same monitor as append(), so consumers can iterate without racing the WS thread.

()

Source from the content-addressed store, hash-verified

36 * so consumers can iterate without racing the WS thread.
37 */
38 public synchronized List<Object> snapshot() {
39 return new ArrayList<>(this);
40 }
41
42 @Override
43 public synchronized Object[] toArray() {

Callers 4

arraySliceMethod · 0.45
serializeMethod · 0.45
toArrayMethod · 0.45
toMapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected