MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / setDefaultCache

Method setDefaultCache

src/main/java/core/org/xbill/DNS/Lookup.java:141–145  ·  view source on GitHub ↗

Sets the Cache to be used as the default for the specified class by future Lookups. @param cache The default cache for the specified class. @param dclass The class whose cache is being set.

(Cache cache, int dclass)

Source from the content-addressed store, hash-verified

139 * @param dclass The class whose cache is being set.
140 */
141public static synchronized void
142setDefaultCache(Cache cache, int dclass) {
143 DClass.check(dclass);
144 defaultCaches.put(Mnemonic.toInteger(dclass), cache);
145}
146
147/**
148 * Gets the search path that will be used as the default by future Lookups.

Callers

nothing calls this directly

Calls 3

checkMethod · 0.95
toIntegerMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected