static final long serialVersionUID = 1l;
- //private String clientId = UUID.randomUUID().toString();
+ // private String clientId = UUID.randomUUID().toString();
/** Synchronized */
private List<SlcEventListenerDescriptor> descriptors = new Vector<SlcEventListenerDescriptor>();
return new ArrayList<SlcEventListenerDescriptor>(descriptors);
}
+ public String getId() {
+ return RequestContextHolder.currentRequestAttributes().getSessionId();
+ }
+
// public SlcEvent listen(SlcEventListener eventListener, Long timeout) {
// return eventListener.listen(clientId, getDescriptorsCopy(), timeout);
// }
// return RequestContextHolder.currentRequestAttributes().getSessionId();
// }
//
- public String getId() {
- return RequestContextHolder.currentRequestAttributes().getSessionId();
- }
-
}