private class GuiWebSocket.DrawCacheExpiryListener extends java.lang.Object implements CacheExpiryListener<java.lang.String,byte[]>
This will inform the JS-side to remove the drawing cache, from its storage.
Modifier and Type | Field and Description |
---|---|
private int |
windowId
The window ID to which the cache belongs.
|
Constructor and Description |
---|
DrawCacheExpiryListener(int windowId)
Create a new listener, for the specified window.
|
Modifier and Type | Method and Description |
---|---|
void |
cacheExpired(CacheExpiryEvent<java.lang.String,byte[]> event)
Notification for expired hashes.
|
public DrawCacheExpiryListener(int windowId)
windowId
- The window ID.public void cacheExpired(CacheExpiryEvent<java.lang.String,byte[]> event)
It will call the JS side to remove the give hashes, and wait for it to finish.
cacheExpired
in interface CacheExpiryListener<java.lang.String,byte[]>
event
- An object containing information about the event.