public abstract class JarCache extends Object
The remoting library supports local jar file caching for the efficiency in remote class loading. The cache stores jar files sent by the other side, and identifies jars with MD5 checksums that uniquely identifies its content. This allows the cache to be reused by future channel sessions or other concurrent channel sessions.
public abstract Future<URL> resolve(Channel channel, long sum1, long sum2) throws IOException, InterruptedException
JarLoader
to retrieve it
from the other side.
This method must be concurrency-safe.
channel
- Channel that needs this jar file. Never null.IOException
InterruptedException
Copyright © 2014. All rights reserved.