public class NotifyRequestList extends Object
Constructor and Description |
---|
NotifyRequestList()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRequest(NotifyRequest req)
Add a request to the list
|
void |
clearRequestList()
Remove all requests from the list
|
NotifyRequest |
findRequest(int mid,
int tid,
int uid,
int pid)
Find the notify request for the matching ids
|
NotifyRequest |
findRequest(NetworkFile dir,
int filter,
boolean watchTree)
Find the notify request for the specified directory and filter
|
int |
getGlobalFilter()
Return the global filter mask, generated by combining all of the pending notify request filters
|
NotifyRequest |
getRequest(int idx)
Return the specified request
|
int |
numberOfRequests()
Return the request list size
|
void |
removeAllRequestsForSession(SMBSrvSession sess)
Remove all requests for the specified session
|
void |
removeAllRequestsForSession(SMBSrvSession sess,
int tid)
Remove all requests for the specified session and tree connection
|
NotifyRequest |
removeRequest(NotifyRequest req)
Remove a request from the list
|
NotifyRequest |
removeRequestAt(int idx)
Remove a request from the list
|
public final NotifyRequest getRequest(int idx)
idx
- intpublic final int getGlobalFilter()
public final void addRequest(NotifyRequest req)
req
- NotifyRequestpublic final NotifyRequest findRequest(int mid, int tid, int uid, int pid)
mid
- inttid
- intuid
- intpid
- intpublic final NotifyRequest findRequest(NetworkFile dir, int filter, boolean watchTree)
dir
- NetworkFilefilter
- intwatchTree
- booleanpublic final NotifyRequest removeRequest(NotifyRequest req)
req
- NotifyRequestpublic final NotifyRequest removeRequestAt(int idx)
idx
- intpublic final void removeAllRequestsForSession(SMBSrvSession sess)
sess
- SMBSrvSessionpublic final void removeAllRequestsForSession(SMBSrvSession sess, int tid)
sess
- SMBSrvSessiontid
- intpublic final void clearRequestList()
public final int numberOfRequests()
Copyright © 2005–2018 Alfresco Software. All rights reserved.