public abstract class AbstractIOWatchService extends Object implements IOWatchService, Filter<WatchEvent<?>>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isDisposed |
Constructor and Description |
---|
AbstractIOWatchService() |
AbstractIOWatchService(javax.enterprise.event.Event<ResourceBatchChangesEvent> resourceBatchChanges,
javax.enterprise.event.Event<ResourceUpdatedEvent> resourceUpdatedEvent,
javax.enterprise.event.Event<ResourceRenamedEvent> resourceRenamedEvent,
javax.enterprise.event.Event<ResourceDeletedEvent> resourceDeletedEvent,
javax.enterprise.event.Event<ResourceAddedEvent> resourceAddedEvent,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
addWatchService(FileSystem fs,
WatchService ws) |
void |
configureOnEvent(ApplicationStarted applicationStartedEvent) |
protected void |
dispose() |
protected IOWatchServiceExecutor |
getWatchServiceExecutor() |
boolean |
hasWatchService(FileSystem fs) |
void |
initialize() |
void |
start() |
public AbstractIOWatchService()
@Inject public AbstractIOWatchService(javax.enterprise.event.Event<ResourceBatchChangesEvent> resourceBatchChanges, javax.enterprise.event.Event<ResourceUpdatedEvent> resourceUpdatedEvent, javax.enterprise.event.Event<ResourceRenamedEvent> resourceRenamedEvent, javax.enterprise.event.Event<ResourceDeletedEvent> resourceDeletedEvent, javax.enterprise.event.Event<ResourceAddedEvent> resourceAddedEvent, @Unmanaged ExecutorService executorService)
@PostConstruct public void initialize()
public void start()
@PreDestroy protected void dispose()
public boolean hasWatchService(FileSystem fs)
hasWatchService
in interface IOWatchService
public void addWatchService(FileSystem fs, WatchService ws)
addWatchService
in interface IOWatchService
public void configureOnEvent(@Observes ApplicationStarted applicationStartedEvent)
protected IOWatchServiceExecutor getWatchServiceExecutor()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.