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
Constructor | Description |
---|---|
GridCacheForStream() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
uid | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
uid | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
uid | java.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:
Parameter | Type | Description |
---|---|---|
s | java.io.InputStream | |
uid | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |