public final class FdkServiceEventHandler extends Executor implements IfsEventHandler
| Modifier and Type | Class and Description | 
|---|---|
class  | 
FdkServiceEventHandler.ItemInvalidation
Information about an invalidated item. 
 | 
| Constructor and Description | 
|---|
FdkServiceEventHandler(int queueSize)
Constructs an FdkServiceEventHandler. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addItem(Long sessId,
       FdkSession session,
       Long itemId)
Add an item to the event handler watch for the specified
 FDK session. 
 | 
static FdkServiceEventHandler | 
getInstance(LibrarySession session)
Returns the singleton instance of this Executor. 
 | 
HashMap | 
getItemInvalidations(Long sessId)
Get the current set of invalidations for the specified session. 
 | 
void | 
handleEvent(IfsEvent event)
Handles the specified repository event. 
 | 
void | 
removeItem(Long sessId,
          Long itemId)
Remove an item from the event handler watch for the specified
 FDK session ID. 
 | 
void | 
removeSession(Long sessId)
Remove a session from registration. 
 | 
callTask, getQueueSize, handleShutdown, interruptExecutingThread, isRequestQueueEmpty, logCallTaskException, run, shutdown, startThread, submitpublic FdkServiceEventHandler(int queueSize)
queueSize - initial queue sizepublic static FdkServiceEventHandler getInstance(LibrarySession session) throws FdkException
If an instance does not yet exist, this creates and starts it.
session - the session contextFdkException - if the operation failspublic void addItem(Long sessId, FdkSession session, Long itemId)
sessId - the FDK session IDsession - the FDK sessionitemId - the ID of the item to addpublic void removeItem(Long sessId, Long itemId)
sessId - the FDK session IDitemId - the ID of the item to removepublic void removeSession(Long sessId)
sessId - the FDK session IDpublic HashMap getItemInvalidations(Long sessId)
Calling this has the side-effect of clearing the current set of invalidations being tracked for the specified session.
sessId - the FDK session IDpublic void handleEvent(IfsEvent event) throws IfsException
handleEvent in interface IfsEventHandlerevent - the eventIfsException - if the operation failsCopyright © 2025. All rights reserved.