GridCacheForStream

Inheritance: java.lang.Object

public abstract class GridCacheForStream

This class contains the cache operations for GridJs. User shall implement his own business logic for storage based on it..

Constructors

ConstructorDescription
GridCacheForStream()

Methods

MethodDescription
equals(Object arg0)
getClass()
getFileUrl(String uid)Implements this method to get the file url from the cache.
hashCode()
isExisted(String uid)Checks whether the cache with uid is existed
loadStream(String uid)Implements this method to load cache with the key uid,return the stream from the cache.
notify()
notifyAll()
saveStream(InputStream s, String uid)Implements this method to save cache,save the stream to the cache with the key uid.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

GridCacheForStream()

public GridCacheForStream()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFileUrl(String uid)

public abstract String getFileUrl(String uid)

Implements this method to get the file url from the cache.

Parameters:

ParameterTypeDescription
uidjava.lang.StringThe unique id for the file cache.

Returns: java.lang.String - The URL of the file

hashCode()

public native int hashCode()

Returns: int

isExisted(String uid)

public abstract boolean isExisted(String uid)

Checks whether the cache with uid is existed

Parameters:

ParameterTypeDescription
uidjava.lang.StringThe unique id for the file cache.

Returns: boolean - The bool value

loadStream(String uid)

public abstract InputStream loadStream(String uid)

Implements this method to load cache with the key uid,return the stream from the cache.

Parameters:

ParameterTypeDescription
uidjava.lang.String

Returns: java.io.InputStream

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

saveStream(InputStream s, String uid)

public abstract void saveStream(InputStream s, String uid)

Implements this method to save cache,save the stream to the cache with the key uid.

Parameters:

ParameterTypeDescription
sjava.io.InputStream
uidjava.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int