List of usage examples for java.util.concurrent CopyOnWriteArraySet CopyOnWriteArraySet
public CopyOnWriteArraySet()
From source file:com.glaf.batch.domain.JobInstance.java
public void addJobExecution(JobExecution execution) { if (executions == null) { executions = new CopyOnWriteArraySet<JobExecution>(); }/* w ww. j a va2 s . c om*/ executions.add(execution); }
From source file:org.codice.ddf.platform.filter.delegate.DelegateServletFilter.java
public DelegateServletFilter() { keysOfInitializedSecurityFilters = new CopyOnWriteArraySet<>(); }
From source file:com.vmware.upgrade.progress.impl.AbstractProgressReporter.java
/** * Creates an instance with no listeners, zero progress and {@link ExecutionState#PENDING} state. *///from w w w . j a v a 2s . c om public AbstractProgressReporter() { this.progressListeners = new CopyOnWriteArraySet<ProgressListener>(); }
From source file:com.espertech.esper.filter.FilterServiceBase.java
/** * Constructor.//from w ww . j a v a2 s . co m */ protected FilterServiceBase(FilterServiceGranularLockFactory lockFactory, boolean allowIsolation) { this.lockFactory = lockFactory; eventTypeIndex = new EventTypeIndex(lockFactory); indexBuilder = new EventTypeIndexBuilder(eventTypeIndex, allowIsolation); filterServiceListeners = new CopyOnWriteArraySet<FilterServiceListener>(); }
From source file:org.rifidi.services.tags.impl.RifidiTagServiceImpl.java
/** * Constructor.//from ww w . j av a 2s. c o m */ public RifidiTagServiceImpl() { tagMap = new ConcurrentHashMap<Long, RifidiTag>(); availableTags = new ArrayList<RifidiTag>(); idCounter = 0l; writing = new AtomicBoolean(false); containers = new CopyOnWriteArraySet<IRifidiTagContainer>(); listeners = new CopyOnWriteArraySet<RifidiTagServiceChangeListener>(); }
From source file:org.codice.ddf.pax.web.jetty.JettyAuthenticator.java
public JettyAuthenticator() { super();/*from www. j a v a 2s .com*/ keysOfInitializedSecurityFilters = new CopyOnWriteArraySet<>(); _loginService = new DummyLoginService(); _identityService = _loginService.getIdentityService(); }
From source file:org.maodian.flyingcat.xmpp.state.DefaultXmppContext.java
/** * @param nettyCtx/*from w w w. j a v a 2s .co m*/ * @param appCtx */ public DefaultXmppContext(GlobalContext appCtx, IMSession imSession) { this.appCtx = appCtx; this.imSession = imSession; listeners = new CopyOnWriteArraySet<>(); state = appCtx.getOpenStreamState(); }
From source file:com.adeptj.modules.jaxrs.resteasy.internal.ResteasyProviderFactoryAdapter.java
ResteasyProviderFactoryAdapter(String[] blacklistedProviders) throws ServletException { this.blacklistedProviders = blacklistedProviders; this.providers = new CopyOnWriteArraySet<>(); // 27.03.2019 - Using reflection as the field is made private in 4.0.0.RC1, it was protected earlier. try {//from w ww . j av a 2s.com FieldUtils.writeField(this, FIELD_PROVIDER_INSTANCES, this.providers, true); } catch (IllegalAccessException iae) { throw new ServletException(iae); } }
From source file:org.xdi.oxauth.model.common.AbstractAuthorizationGrant.java
protected AbstractAuthorizationGrant(User user, AuthorizationGrantType authorizationGrantType, Client client, Date authenticationTime) { this.authenticationTime = authenticationTime != null ? new Date(authenticationTime.getTime()) : null; this.user = user; this.authorizationGrantType = authorizationGrantType; this.client = client; this.scopes = new CopyOnWriteArraySet<String>(); this.grantId = UUID.randomUUID().toString(); }
From source file:com.devicehive.websockets.AbstractWebSocketHandler.java
@Override public void afterConnectionEstablished(WebSocketSession session) throws Exception { logger.debug("Opening session id {} ", session.getId()); session = new ConcurrentWebSocketSessionDecorator(session, sendTimeLimit, sendBufferSizeLimit); HiveWebsocketSessionState state = new HiveWebsocketSessionState(); session.getAttributes().put(HiveWebsocketSessionState.KEY, state); session.getAttributes().put(CommandHandlers.SUBSCSRIPTION_SET_NAME, new CopyOnWriteArraySet<String>()); session.getAttributes().put(NotificationHandlers.SUBSCSRIPTION_SET_NAME, new CopyOnWriteArraySet<String>()); sessionMonitor.registerSession(session); }